From b88ffc10d646da1df436c4fb87604b9abcee0d7b Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 5 Jan 2011 12:23:40 +0000 Subject: Refs #2676 removes old elgg_system_messages() function git-svn-id: http://code.elgg.org/elgg/trunk@7841 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/lib/ui.js | 2 +- views/default/js/elgg.php | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/js/lib/ui.js b/js/lib/ui.js index fff13c800..389986d53 100644 --- a/js/lib/ui.js +++ b/js/lib/ui.js @@ -6,7 +6,7 @@ elgg.ui.init = function () { $(this).stop().fadeOut('fast'); }); - $('.elgg-system-messages li').animate({opacity: 0.9}, 5000); + $('.elgg-system-messages li').animate({opacity: 0.9}, 6000); $('.elgg-system-messages li').fadeOut('slow'); $('.elgg-toggle').live('click', elgg.ui.toggle); diff --git a/views/default/js/elgg.php b/views/default/js/elgg.php index 3a6e0c814..1bf7574bd 100644 --- a/views/default/js/elgg.php +++ b/views/default/js/elgg.php @@ -63,26 +63,6 @@ $(function() { elgg.trigger_event('init', 'system'); }); -$(document).ready(function () { - - elgg_system_message(); - -}); /* end document ready function */ - - - -// display & hide elgg system messages -function elgg_system_message() { - $('.elgg-system-messages li').animate({opacity: 0.9}, 1000); - $('.elgg-system-messages li').animate({opacity: 0.9}, 5000); - $('.elgg-system-messages li').fadeOut('slow'); - - $('.elgg-system-messages li').click(function() { - $('.elgg-system-messages li').stop(); - $('.elgg-system-messages li').fadeOut('slow'); - return false; - }); -} // reusable slide in/out toggle function function elgg_slide_toggle(activateLink, parentElement, toggleElement) { -- cgit v1.2.3