aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-27 00:59:50 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-27 00:59:50 +0000
commitb8c6990c8ff00e8868f8f6096a9d2ef44271a548 (patch)
tree0356acfadbd9a4f65b72e117704e0baf8d3b5e96 /views/default
parent4586dea35c98de2fdc071b7a6e5babbbb7145633 (diff)
downloadelgg-b8c6990c8ff00e8868f8f6096a9d2ef44271a548.tar.gz
elgg-b8c6990c8ff00e8868f8f6096a9d2ef44271a548.tar.bz2
slide up system messages in admin area
git-svn-id: http://code.elgg.org/elgg/trunk@8505 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/js/admin.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/views/default/js/admin.php b/views/default/js/admin.php
index a11f51e66..15c74d4de 100644
--- a/views/default/js/admin.php
+++ b/views/default/js/admin.php
@@ -8,6 +8,14 @@
elgg.provide('elgg.admin');
elgg.admin.init = function () {
+
+ // system messages do not fade in admin area, instead slide up when clicked
+ $('.elgg-system-messages li').stop(true);
+ $('.elgg-system-messages li').die('click');
+ $('.elgg-system-messages li').live('click', function() {
+ $(this).stop().slideUp('medium');
+ });
+
// plugin screenshot modal
$('.elgg-plugin-screenshot a').click(elgg.admin.displayPluginScreenshot);
@@ -138,4 +146,4 @@ elgg.admin.moveProfileField = function(e, ui) {
});
}
-elgg.register_event_handler('init', 'system', elgg.admin.init); \ No newline at end of file
+elgg.register_event_handler('init', 'system', elgg.admin.init, 1000); \ No newline at end of file