diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-08-07 11:53:40 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-07 11:53:40 -0700 | 
| commit | e4eec71efa5f7b1902155a34f8655cebe523c358 (patch) | |
| tree | 4007222452e741db734ea975df74155a4feb95cb /themes | |
| parent | a5137f59722bcb4867ed4c863b34ddb71d7df3d9 (diff) | |
Rename gallery.common.js functions to conform to our naming standards
and have some basic namespacing:
  showMessage --> gallery_show_message
  vAlign      --> gallery_valign
  showLoading --> gallery_show_loading
Convert gallery.show_full_size.js to be a jQuery function and give it a namespace:
  show_full_size --> gallery_show_full_size
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/admin_default/js/ui.init.js | 4 | ||||
| -rw-r--r-- | themes/default/js/ui.init.js | 6 | ||||
| -rw-r--r-- | themes/default/views/photo.html.php | 2 | 
3 files changed, 6 insertions, 6 deletions
diff --git a/themes/admin_default/js/ui.init.js b/themes/admin_default/js/ui.init.js index 89dd5b47..e52f0c4c 100644 --- a/themes/admin_default/js/ui.init.js +++ b/themes/admin_default/js/ui.init.js @@ -14,7 +14,7 @@ $(document).ready(function(){    $("#gSiteAdminMenu").css("display", "block");    // Initialize status message effects -  $("#gMessage li").showMessage(); +  $("#gMessage li").gallery_show_message();    // Initialize modal dialogs    $(".gDialogLink").gallery_dialog(); @@ -24,7 +24,7 @@ $(document).ready(function(){    if ($("#gPhotoStream").length) {      // Vertically align thumbs in photostream -    $(".gItem").vAlign(); +    $(".gItem").gallery_valign();    }    // Apply jQuery UI button css to submit inputs diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index 4b876c66..b8ad68db 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -29,7 +29,7 @@ $(document).ready(function() {    $("#gSiteMenu").css("display", "block");    // Initialize status message effects -  $("#gMessage li").showMessage(); +  $("#gMessage li").gallery_show_message();    // Initialize dialogs    $(".gMenuLink").addClass("gDialogLink"); @@ -53,9 +53,9 @@ $(document).ready(function() {    // Album view only    if ($("#gAlbumGrid").length) {      // Vertical align thumbnails/metadata in album grid -    $(".gItem").vAlign(); +    $(".gItem").gallery_valign();      $(".gQuick").ajaxStop(function(){ -      $(".gItem").vAlign(); +      $(".gItem").gallery_valign();      });    } diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index bf4d9da3..48472170 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -5,7 +5,7 @@  <script>    $(document).ready(function() {      $(".gFullSizeLink").click(function() { -      show_full_size("<?= $theme->item()->file_url() ?>", "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>"); +      $.gallery_show_full_size("<?= $theme->item()->file_url() ?>", "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>");        return false;      });    });  | 
