aboutsummaryrefslogtreecommitdiff
path: root/mod/messages
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-08 14:31:42 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-08 14:31:42 -0500
commit229a0cc6091e11ca8431d96d022898b778a9e951 (patch)
tree009314a54531ef4fc93db4625fb902f2c1373289 /mod/messages
parentcfcf985b803e2ce4187d1dad30905a30e4c937b8 (diff)
downloadelgg-229a0cc6091e11ca8431d96d022898b778a9e951.tar.gz
elgg-229a0cc6091e11ca8431d96d022898b778a9e951.tar.bz2
updated the messages plugin to use 1.8's JS hook system
Diffstat (limited to 'mod/messages')
-rw-r--r--mod/messages/views/default/messages/js.php3
1 files changed, 2 insertions, 1 deletions
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();
});