aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-22 00:37:56 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-22 00:37:56 +0000
commit6e77aa3d528f6dac462dfab3f7db8fa38be4b3c3 (patch)
tree8b852fcdaef858fff7e2e6a94370a950d3e4b669
parentd35817ac9562d5a835b1d294772685ff5beb92d8 (diff)
downloadelgg-6e77aa3d528f6dac462dfab3f7db8fa38be4b3c3.tar.gz
elgg-6e77aa3d528f6dac462dfab3f7db8fa38be4b3c3.tar.bz2
Refs #3016 making the final elgg.js more readable
git-svn-id: http://code.elgg.org/elgg/trunk@8812 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/bookmarks/views/default/bookmarks/js.php3
-rw-r--r--mod/groups/views/default/groups/js.php3
-rw-r--r--mod/messageboard/views/default/messageboard/js.php4
-rw-r--r--mod/messages/views/default/messages/js.php3
-rw-r--r--mod/uservalidationbyemail/views/default/uservalidationbyemail/js.php3
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);