1 2 3 4 5 6 7
// messages plugin toggle elgg.register_hook_handler('init', 'system', function() { $("#messages-toggle").click(function() { $('input[type=checkbox]').click(); }); });