summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2008-11-28 23:24:13 +0000
committerChad Kieffer <chad@2tbsp.com>2008-11-28 23:24:13 +0000
commitd01010cd1d137caf180d581ee30fe80cac971f5e (patch)
treed139995407611fcf7599be0e96be68f5f5ad4337
parenta73aade7130ba22ffb434b0f32c6421a7324b237 (diff)
Use .width() instead of .innerWidth(). Now photo resize works in IE 7.
-rw-r--r--themes/default/jquery/jquery.ui.init.js4
1 files changed, 2 insertions, 2 deletions
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-/);
})