From 767d259bb89a337ec57abeeb8c3ac5c5fc3e9d21 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Fri, 11 Feb 2011 23:09:33 +0000 Subject: Added disapproving @todo's wherever I could find javascript not conforming to 1.8 conventions git-svn-id: http://code.elgg.org/elgg/trunk@8123 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/js/blog/save_draft.php | 2 + .../views/default/widgets/bookmarks/view.php | 8 ++-- .../views/default/defaultwidgets/editor.php | 51 ++++++++++------------ mod/embed/views/default/embed/embed.php | 1 + mod/embed/views/default/embed/item/gallery.php | 2 +- mod/embed/views/default/embed/item/list.php | 2 +- mod/embed/views/default/embed/metatags.php | 5 ++- mod/embed/views/default/embed/upload/content.php | 1 + mod/file/views/default/file/embed_upload.php | 1 + .../views/default/groups/profile/widgets.php | 4 +- .../views/default/widgets/messageboard/content.php | 1 + .../views/default/forms/messages/process.php | 1 + .../notifications/subscriptions/collections.php | 2 +- .../notifications/subscriptions/forminternals.php | 32 +++++++------- .../notifications/subscriptions/jsfuncs.php | 2 +- .../views/default/pages/sidebar/navigation.php | 2 +- mod/profile/views/default/profile/wrapper.php | 2 +- mod/thewire/views/default/thewire/forms/add.php | 11 ++--- mod/tinymce/views/default/tinymce/init.php | 2 +- mod/zaudio/views/default/zaudio/audioplayer.php | 1 + views/default/core/account/login_box.php | 1 + views/default/core/account/login_dropdown.php | 2 +- views/default/core/account/login_walled_garden.php | 2 +- views/default/core/friends/collection.php | 2 +- views/default/core/friends/collections.php | 2 +- views/default/core/friends/collectiontabs.php | 4 +- views/default/core/friends/picker.php | 4 +- .../default/core/friends/tablelistcountupdate.php | 2 +- views/default/core/river/filter.php | 2 +- views/default/forms/avatar/crop.php | 4 +- views/default/forms/register.php | 2 +- views/default/forms/user/requestnewpassword.php | 2 +- views/default/input/autocomplete.php | 3 +- views/default/input/datepicker.php | 1 + views/default/input/userpicker.php | 1 + views/installation/install/forms/template.php | 1 + 36 files changed, 90 insertions(+), 78 deletions(-) diff --git a/mod/blog/views/default/js/blog/save_draft.php b/mod/blog/views/default/js/blog/save_draft.php index 177ecc1df..7f3c3bb12 100644 --- a/mod/blog/views/default/js/blog/save_draft.php +++ b/mod/blog/views/default/js/blog/save_draft.php @@ -3,6 +3,8 @@ * Save draft through ajax * * @package Blog + * + * @todo JS 1.8: no. Convert to use elgg.blog.* */ ?> diff --git a/mod/bookmarks/views/default/widgets/bookmarks/view.php b/mod/bookmarks/views/default/widgets/bookmarks/view.php index f9bbf5488..6a5c7476a 100644 --- a/mod/bookmarks/views/default/widgets/bookmarks/view.php +++ b/mod/bookmarks/views/default/widgets/bookmarks/view.php @@ -1,10 +1,10 @@ - + @@ -35,7 +35,7 @@ if($shares){ "profile/icon", array( 'entity' => $owner, 'size' => 'tiny', - ) + ) ); //get the bookmark title diff --git a/mod/defaultwidgets/views/default/defaultwidgets/editor.php b/mod/defaultwidgets/views/default/defaultwidgets/editor.php index 0decde97d..439f36ce4 100644 --- a/mod/defaultwidgets/views/default/defaultwidgets/editor.php +++ b/mod/defaultwidgets/views/default/defaultwidgets/editor.php @@ -7,8 +7,8 @@ * @subpackage Core * * Edited version of the widget editor to be used to set default widgets - * - **/ + * + **/ // set some defaults $owner = elgg_get_page_owner_entity(); @@ -45,11 +45,6 @@ } ?> -
@@ -99,24 +94,24 @@ $(document).ready(function () {
- - - - - + + + - - - - + + + + +
- - + + + -

-
-

-
- +

+
+

+
+ - -
+ ?> + +

>
-

diff --git a/mod/embed/views/default/embed/embed.php b/mod/embed/views/default/embed/embed.php index e839450da..9b875fdeb 100644 --- a/mod/embed/views/default/embed/embed.php +++ b/mod/embed/views/default/embed/embed.php @@ -123,6 +123,7 @@ if (!$sections) { echo $content; ?> + diff --git a/mod/embed/views/default/embed/upload/content.php b/mod/embed/views/default/embed/upload/content.php index bac8e1393..874ed44b1 100644 --- a/mod/embed/views/default/embed/upload/content.php +++ b/mod/embed/views/default/embed/upload/content.php @@ -29,6 +29,7 @@ if ($upload_sections) { echo $upload_content . ""; ?> + @@ -173,8 +173,8 @@ if (!isset($vars['replacement'])) { ?> - - + + $foo) { @@ -187,8 +187,8 @@ if (!isset($vars['replacement'])) { $i++; } ?> - - + + - - + - + - - - + + + - +{$msg}"; - $display .= ""; - $display .= "
"; - echo $display; - echo elgg_echo("thewire:charleft") . "
"; + $display .= ""; + $display .= ""; + $display .= "
"; + echo $display; + echo elgg_echo("thewire:charleft") . "
"; echo elgg_view('input/securitytoken'); ?> diff --git a/mod/tinymce/views/default/tinymce/init.php b/mod/tinymce/views/default/tinymce/init.php index 6282fa0f6..7064709d6 100644 --- a/mod/tinymce/views/default/tinymce/init.php +++ b/mod/tinymce/views/default/tinymce/init.php @@ -6,7 +6,7 @@ * http://tinymce.moxiecode.com/wiki.php/Configuration */ ?> - + diff --git a/views/default/core/account/login_box.php b/views/default/core/account/login_box.php index a371ab0c8..89612ef1b 100644 --- a/views/default/core/account/login_box.php +++ b/views/default/core/account/login_box.php @@ -20,6 +20,7 @@ if (elgg_get_config('https_login')) { echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$login_url}action/login")); ?> + diff --git a/views/default/core/account/login_dropdown.php b/views/default/core/account/login_dropdown.php index fd01b4711..aa67c6756 100644 --- a/views/default/core/account/login_dropdown.php +++ b/views/default/core/account/login_dropdown.php @@ -26,7 +26,7 @@ if (elgg_get_config('https_login')) { $form_body, 'action' => "{$login_url}action/login")); ?> - + \ No newline at end of file diff --git a/views/default/core/river/filter.php b/views/default/core/river/filter.php index 94956a0fb..74af9969b 100644 --- a/views/default/core/river/filter.php +++ b/views/default/core/river/filter.php @@ -33,7 +33,7 @@ if ($selector) { } echo elgg_view('input/dropdown', $params); ?> - + - + 86400) { ?> +
 
   
 
+
$friend, 'size' => 'tiny', 'override' => true)); @@ -233,11 +233,11 @@ END; name ?>