diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-12-31 18:13:25 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-31 18:13:42 -0800 |
commit | 25f936e1edc8c47a789b423b9cadbe071a65256d (patch) | |
tree | b1298f253235fc040ef845c677dac62ad059ea31 /themes | |
parent | 20bd09ff004816ae152a2f890a24dc5e85741fac (diff) |
Show context menus for movie items. Fix for ticket #960.
Diffstat (limited to 'themes')
-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(); }); |