summaryrefslogtreecommitdiff
path: root/themes/default/jquery
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/jquery')
-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-/);