From 7b08be11399ce3d5c8603902f463244559b71870 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Mon, 15 Feb 2010 13:24:28 -0700 Subject: Initialize context-menu hover using g-photo/g-movie, not the image or movie object. Closes ticket #808 --- themes/wind/js/ui.init.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'themes/wind/js/ui.init.js') diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js index 64eb6bc3..6edf6be4 100644 --- a/themes/wind/js/ui.init.js +++ b/themes/wind/js/ui.init.js @@ -98,8 +98,7 @@ $(document).ready(function() { $("#g-photo,#g-movie").gallery_fit_photo(); // Initialize context menus - var resize = $("#g-photo,#g-movie").gallery_get_photo(); - $(resize).hover(function(){ + $("#g-photo,#g-movie").hover(function(){ $(this).gallery_context_menu(); }); -- cgit v1.2.3