From 6e77aa3d528f6dac462dfab3f7db8fa38be4b3c3 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 22 Mar 2011 00:37:56 +0000 Subject: Refs #3016 making the final elgg.js more readable git-svn-id: http://code.elgg.org/elgg/trunk@8812 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/views/default/bookmarks/js.php | 3 ++- mod/groups/views/default/groups/js.php | 3 ++- mod/messageboard/views/default/messageboard/js.php | 4 ++-- mod/messages/views/default/messages/js.php | 3 ++- mod/uservalidationbyemail/views/default/uservalidationbyemail/js.php | 3 ++- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mod/bookmarks/views/default/bookmarks/js.php b/mod/bookmarks/views/default/bookmarks/js.php index b2fcd88bd..0e55c510a 100644 --- a/mod/bookmarks/views/default/bookmarks/js.php +++ b/mod/bookmarks/views/default/bookmarks/js.php @@ -1,3 +1,4 @@ + elgg.provide('elgg.bookmarks'); elgg.bookmarks.init = function() { @@ -8,4 +9,4 @@ elgg.bookmarks.init = function() { e.attr('href', link); } -elgg.register_hook_handler('init', 'system', elgg.bookmarks.init); \ No newline at end of file +elgg.register_hook_handler('init', 'system', elgg.bookmarks.init); diff --git a/mod/groups/views/default/groups/js.php b/mod/groups/views/default/groups/js.php index df74d52ee..dec31cf54 100644 --- a/mod/groups/views/default/groups/js.php +++ b/mod/groups/views/default/groups/js.php @@ -1,3 +1,4 @@ + $(function() { $('#groups-tools').find('.elgg-module:odd').addClass('odd'); -}); \ No newline at end of file +}); diff --git a/mod/messageboard/views/default/messageboard/js.php b/mod/messageboard/views/default/messageboard/js.php index b7da18a56..131c96c8a 100644 --- a/mod/messageboard/views/default/messageboard/js.php +++ b/mod/messageboard/views/default/messageboard/js.php @@ -1,3 +1,4 @@ + elgg.provide('elgg.messageboard'); elgg.messageboard.init = function() { @@ -49,5 +50,4 @@ elgg.messageboard.deletePost = function(e) { e.preventDefault(); } - -elgg.register_hook_handler('init', 'system', elgg.messageboard.init); \ No newline at end of file +elgg.register_hook_handler('init', 'system', elgg.messageboard.init); diff --git a/mod/messages/views/default/messages/js.php b/mod/messages/views/default/messages/js.php index 7ae5f8a08..5f6b476e7 100644 --- a/mod/messages/views/default/messages/js.php +++ b/mod/messages/views/default/messages/js.php @@ -1,3 +1,4 @@ + $(function() { $("#messages-toggle").click(function() { $('input[type=checkbox]').click(); @@ -6,4 +7,4 @@ $(function() { $("#messages-show-reply").click(function() { $('#messages-reply-form').slideToggle('medium'); }); -}); \ No newline at end of file +}); diff --git a/mod/uservalidationbyemail/views/default/uservalidationbyemail/js.php b/mod/uservalidationbyemail/views/default/uservalidationbyemail/js.php index 29ef2024d..e475bd52f 100644 --- a/mod/uservalidationbyemail/views/default/uservalidationbyemail/js.php +++ b/mod/uservalidationbyemail/views/default/uservalidationbyemail/js.php @@ -1,3 +1,4 @@ + elgg.provide('elgg.uservalidationbyemail'); elgg.uservalidationbyemail.init = function() { @@ -24,4 +25,4 @@ elgg.uservalidationbyemail.init = function() { }); } -elgg.register_hook_handler('init', 'system', elgg.uservalidationbyemail.init); \ No newline at end of file +elgg.register_hook_handler('init', 'system', elgg.uservalidationbyemail.init); -- cgit v1.2.3