diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-02 04:23:04 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-02 04:23:04 +0000 |
commit | f7ae28ea45656d2821262998e9a71c351dcced8c (patch) | |
tree | c0bed93d6a879ca0ee3c2c35a58c8290c10afbe0 /engine/js/lib/ui.js | |
parent | af335c48fc3f4a741e7b5650db46aac48183c244 (diff) | |
download | elgg-f7ae28ea45656d2821262998e9a71c351dcced8c.tar.gz elgg-f7ae28ea45656d2821262998e9a71c351dcced8c.tar.bz2 |
Refs #2538: Added Elggy event system. Javascript boot sequence mimics PHP.
git-svn-id: http://code.elgg.org/elgg/trunk@7186 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/js/lib/ui.js')
-rw-r--r-- | engine/js/lib/ui.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/js/lib/ui.js b/engine/js/lib/ui.js index b584d66d1..4a9c64e70 100644 --- a/engine/js/lib/ui.js +++ b/engine/js/lib/ui.js @@ -1,6 +1,11 @@ elgg.provide('elgg.ui');
elgg.ui.init = function () {
+ //if the user clicks a system message, make it disappear
+ $('.elgg_system_message').live('click', function() {
+ $(this).stop().fadeOut('fast');
+ });
+
$('a.collapsibleboxlink').click(elgg.ui.toggleCollapsibleBox);
// set-up hover class for dragged widgets
@@ -113,6 +118,4 @@ elgg.ui.toggleCollapsibleBox = function () { };
})(jQuery);
-$(function() {
- elgg.ui.init();
-});
\ No newline at end of file +elgg.register_event_handler('init', 'system', elgg.ui.init);
\ No newline at end of file |