diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-11-08 18:07:58 -0700 | 
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-11-08 18:07:58 -0700 | 
| commit | 07268d5c5208ede6259da80680983dc9392a4428 (patch) | |
| tree | 4d1d853c248a16d7bf166108924bac377aca01c5 /themes/wind/js | |
| parent | d349400531c780715a54ff9537406546217c26ec (diff) | |
Key off of g-photo, rather than g-item, when fitting resized photos inside their parent.
Diffstat (limited to 'themes/wind/js')
| -rw-r--r-- | themes/wind/js/ui.init.js | 6 | 
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();      }); | 
