diff options
-rw-r--r-- | lib/gallery.common.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 548aa29a..fa11aeb9 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -137,18 +137,21 @@ return; } var list = $(hover_target).find("ul"); + hover_target.find("*").removeAttr('title'); + hover_target.find(".g-dialog-link").gallery_dialog(); + hover_target.find(".g-ajax-link").gallery_ajax(); list.hide(); + hover_target.hover( function() { list.stop(true, true).slideDown("fast"); - $(this).find(".g-dialog-link").gallery_dialog(); - $(this).find(".g-ajax-link").gallery_ajax(); }, function() { list.stop(true, true).slideUp("slow"); } ); + hover_target.addClass("g-context-menu-initialized"); } }; |