diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-31 18:32:24 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-31 18:32:24 -0800 |
commit | ee1a032e4dec8dcb85702ac2c30807345feaa7e6 (patch) | |
tree | d487969c510ebf301bd994ef86dc23ae569d04e8 /themes/wind/js | |
parent | 40d496edeef614f7f3bc55d2fb178ea581dcd9f6 (diff) | |
parent | 25f936e1edc8c47a789b423b9cadbe071a65256d (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'themes/wind/js')
-rw-r--r-- | themes/wind/js/ui.init.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js index be03b6a8..f9fb8519 100644 --- a/themes/wind/js/ui.init.js +++ b/themes/wind/js/ui.init.js @@ -63,8 +63,8 @@ $(document).ready(function() { // Set the hover item's height $(this).height("auto"); var context_menu = $(this).find(".g-context-menu"); - var adj_height = $(this).height() + context_menu.height(); - $(this).height(adj_height); + var adj_height = $(this).height() + context_menu.height(); + $(this).height(adj_height); }, function() { // Reset item height and position @@ -87,12 +87,12 @@ $(document).ready(function() { } // Photo/Item item view - if ($("#g-photo").length) { + if ($("#g-photo,#g-movie").length) { // Ensure the resized image fits within its container - $("#g-photo").gallery_fit_photo(); + $("#g-photo,#g-movie").gallery_fit_photo(); // Initialize context menus - var resize = $("#g-photo").gallery_get_photo(); + var resize = $("#g-photo,#g-movie").gallery_get_photo(); $(resize).hover(function(){ $(this).gallery_context_menu(); }); |