summaryrefslogtreecommitdiff
path: root/themes/wind/js/ui.init.js
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-11-08 18:07:58 -0700
committerChad Kieffer <ckieffer@gmail.com>2009-11-08 18:07:58 -0700
commit07268d5c5208ede6259da80680983dc9392a4428 (patch)
tree4d1d853c248a16d7bf166108924bac377aca01c5 /themes/wind/js/ui.init.js
parentd349400531c780715a54ff9537406546217c26ec (diff)
Key off of g-photo, rather than g-item, when fitting resized photos inside their parent.
Diffstat (limited to 'themes/wind/js/ui.init.js')
-rw-r--r--themes/wind/js/ui.init.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js
index 0126c36b..be03b6a8 100644
--- a/themes/wind/js/ui.init.js
+++ b/themes/wind/js/ui.init.js
@@ -87,12 +87,12 @@ $(document).ready(function() {
}
// Photo/Item item view
- if ($("#g-item").length) {
+ if ($("#g-photo").length) {
// Ensure the resized image fits within its container
- $("#g-item").gallery_fit_photo();
+ $("#g-photo").gallery_fit_photo();
// Initialize context menus
- var resize = $("#g-item").gallery_get_photo();
+ var resize = $("#g-photo").gallery_get_photo();
$(resize).hover(function(){
$(this).gallery_context_menu();
});