aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/ui.js3
-rw-r--r--views/default/js/elgg.php16
2 files changed, 11 insertions, 8 deletions
diff --git a/js/lib/ui.js b/js/lib/ui.js
index 56f2d5eb0..fff13c800 100644
--- a/js/lib/ui.js
+++ b/js/lib/ui.js
@@ -6,6 +6,9 @@ elgg.ui.init = function () {
$(this).stop().fadeOut('fast');
});
+ $('.elgg-system-messages li').animate({opacity: 0.9}, 5000);
+ $('.elgg-system-messages li').fadeOut('slow');
+
$('.elgg-toggle').live('click', elgg.ui.toggle);
$('.elgg-menu-parent').live('click', elgg.ui.toggleMenu);
diff --git a/views/default/js/elgg.php b/views/default/js/elgg.php
index f7f1e942c..3a6e0c814 100644
--- a/views/default/js/elgg.php
+++ b/views/default/js/elgg.php
@@ -73,14 +73,14 @@ $(document).ready(function () {
// display & hide elgg system messages
function elgg_system_message() {
- $("#elgg-system-message").animate({opacity: 0.9}, 1000);
- $("#elgg-system-message").animate({opacity: 0.9}, 5000);
- $("#elgg-system-message").fadeOut('slow');
-
- $("#elgg-system-message").click(function () {
- $("#elgg-system-message").stop();
- $("#elgg-system-message").fadeOut('slow');
- return false;
+ $('.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;
});
}