]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated the messages plugin to use 1.8's JS hook system
authorCash Costello <cash.costello@gmail.com>
Sun, 8 Jan 2012 19:31:42 +0000 (14:31 -0500)
committerCash Costello <cash.costello@gmail.com>
Sun, 8 Jan 2012 19:31:42 +0000 (14:31 -0500)
mod/messages/views/default/messages/js.php

index 39f93e64530a36351200dc237e2f008173465a4f..60cf36b9267015eda25338dfd9857b84db287436 100644 (file)
@@ -1,5 +1,6 @@
 
-$(function() {
+// messages plugin toggle
+elgg.register_hook_handler('init', 'system', function() {
        $("#messages-toggle").click(function() {
                $('input[type=checkbox]').click();
        });