summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2008-12-05 05:59:50 +0000
committerChad Kieffer <chad@2tbsp.com>2008-12-05 05:59:50 +0000
commit2e908ec6e5972751ae74ed4f00281e31fab3d37f (patch)
tree03c2b48e00d77e7f271cb6411d0701aa0960f7fb
parent8d1790a0b465566439911c05806afea742148773 (diff)
Read that $("#Selector").length was a good way to check whether an element exists in the DOM/jQuery object.
-rw-r--r--themes/default/jquery/jquery.ui.init.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/jquery/jquery.ui.init.js b/themes/default/jquery/jquery.ui.init.js
index 97d5f1e3..1806cb10 100644
--- a/themes/default/jquery/jquery.ui.init.js
+++ b/themes/default/jquery/jquery.ui.init.js
@@ -10,7 +10,7 @@ $("document").ready(function() {
* Reset width of sized photos wider than their
* parent container so that they fit
*/
- if ($("#gItem").width()) {
+ if ($("#gItem").length) {
var containerWidth = $("#gItem").width();
var oPhoto = $("#gItem img").filter(function() {
return this.id.match(/gPhotoID-/);