From d01010cd1d137caf180d581ee30fe80cac971f5e Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Fri, 28 Nov 2008 23:24:13 +0000 Subject: Use .width() instead of .innerWidth(). Now photo resize works in IE 7. --- themes/default/jquery/jquery.ui.init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/default/jquery/jquery.ui.init.js') diff --git a/themes/default/jquery/jquery.ui.init.js b/themes/default/jquery/jquery.ui.init.js index 5c159137..97d5f1e3 100644 --- a/themes/default/jquery/jquery.ui.init.js +++ b/themes/default/jquery/jquery.ui.init.js @@ -10,8 +10,8 @@ $("document").ready(function() { * Reset width of sized photos wider than their * parent container so that they fit */ - if ($("#gItem").innerWidth()) { - var containerWidth = $("#gItem").innerWidth(); + if ($("#gItem").width()) { + var containerWidth = $("#gItem").width(); var oPhoto = $("#gItem img").filter(function() { return this.id.match(/gPhotoID-/); }) -- cgit v1.2.3