diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-31 07:16:38 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-31 07:16:38 +0000 |
commit | 23105f135990dd576c3d2099fabf0962d9b9fc58 (patch) | |
tree | 753207105268e17a5559e4cb5cefec3172936439 /themes/default/js/ui.init.js | |
parent | c1140b5c0aac2c2c1822a65ddd55151e093e2af4 (diff) |
PhotoID -> PhotoId for consistency
Diffstat (limited to 'themes/default/js/ui.init.js')
-rw-r--r-- | themes/default/js/ui.init.js | 18 |
1 files changed, 9 insertions, 9 deletions
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("<div></div>") $('.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(""); |