diff options
author | Nathan Kinkade <nkinkade@nkinka.de> | 2010-01-03 15:51:24 +0000 |
---|---|---|
committer | Nathan Kinkade <nkinkade@nkinka.de> | 2010-01-03 15:51:24 +0000 |
commit | 399abbc3a754cf5fdcfdff113446e1bc264091e2 (patch) | |
tree | 592188568e15325d59e51bf19cfdf667fae8d86d /themes/wind/js | |
parent | 925a6a2220760cb7daacee1ab80a07b61b3a30a1 (diff) | |
parent | 64e5efd57ba1479179c202e1b76b6eeb42d2924c (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
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(); }); |