From 23105f135990dd576c3d2099fabf0962d9b9fc58 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 31 Dec 2008 07:16:38 +0000 Subject: PhotoID -> PhotoId for consistency --- core/tests/selenium/Add_Comment.html | 2 +- themes/default/js/ui.init.js | 18 +++++++++--------- themes/default/views/album.html.php | 2 +- themes/default/views/photo.html.php | 2 +- themes/default/views/tag.html.php | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/core/tests/selenium/Add_Comment.html b/core/tests/selenium/Add_Comment.html index ca25b244..b4b96ed2 100644 --- a/core/tests/selenium/Add_Comment.html +++ b/core/tests/selenium/Add_Comment.html @@ -18,7 +18,7 @@ clickAndWait - gPhotoID-2 + gPhotoId-2 diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index 3a2914ee..d64db1ee 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -1,6 +1,6 @@ /** * Initialize jQuery UI and Plugin elements - * + * * @todo Standardize how elements requiring listeners are identified (class or id) */ @@ -17,7 +17,7 @@ $("document").ready(function() { $(".gItem").wrapInner("
") $('.gItem div').vAlign(); } - + // Photo/Item item view only if ($("#gItem").length) { sizedImage(); @@ -47,7 +47,7 @@ $("document").ready(function() { // Short forms handleShortFormEvent(shortForms); - + }); // Vertically align a block element's content @@ -66,7 +66,7 @@ $.fn.vAlign = function() { function sizedImage() { var containerWidth = $("#gItem").width(); var oPhoto = $("#gItem img").filter(function() { - return this.id.match(/gPhotoID-/); + return this.id.match(/gPhotoId-/); }); if (containerWidth < oPhoto.width()) { var proportion = containerWidth / oPhoto.width(); @@ -168,11 +168,11 @@ function openDialog(element) { * @param array shortForms Array of short form IDs */ function handleShortFormEvent(shortForms) { - for (var i in shortForms) { + for (var i in shortForms) { shortFormInit(shortForms[i]); } } - + /** * Initialize a short form. Short forms may contain only one text input. * @@ -182,15 +182,15 @@ function shortFormInit(formID) { // Get the input ID and it's label text var labelValue = $(formID + " label:first").html(); var inputID = "#" + $(formID + " input[type='text']:first").attr("id"); - + // Set the input value equal to label text $(inputID).val(labelValue); - + // Attach event listeners to the input $(inputID).bind("focus blur", function(e){ var eLabelVal = $(this).siblings("label").html(); var eInputVal = $(this).val(); - + // Empty input value if it equals it's label if (eLabelVal == eInputVal) { $(this).val(""); diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index d36ff7c2..7f4e2119 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -14,7 +14,7 @@
  • thumb_top($child) ?> - photo diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index cf7c83b8..d23dec2d 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -5,7 +5,7 @@
    - <?= $item->title ?>
    description ?>
    diff --git a/themes/default/views/tag.html.php b/themes/default/views/tag.html.php index 93cce7e7..8c950e74 100644 --- a/themes/default/views/tag.html.php +++ b/themes/default/views/tag.html.php @@ -15,7 +15,7 @@
  • thumb_top($child) ?> - photo -- cgit v1.2.3