From 229a0cc6091e11ca8431d96d022898b778a9e951 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 8 Jan 2012 14:31:42 -0500 Subject: updated the messages plugin to use 1.8's JS hook system --- mod/messages/views/default/messages/js.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/messages/views/default/messages/js.php b/mod/messages/views/default/messages/js.php index 39f93e645..60cf36b92 100644 --- a/mod/messages/views/default/messages/js.php +++ b/mod/messages/views/default/messages/js.php @@ -1,5 +1,6 @@ -$(function() { +// messages plugin toggle +elgg.register_hook_handler('init', 'system', function() { $("#messages-toggle").click(function() { $('input[type=checkbox]').click(); }); -- cgit v1.2.3