diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-02-18 09:58:31 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-18 09:58:31 -0800 |
commit | cf25a046536912c6e7dd558b0b10919d46217513 (patch) | |
tree | ce5b03c0f1800161c59bf5fb7a39babeb2010b5a /lib | |
parent | 9345dde83e1f092a9309c45282dc21e3fd408875 (diff) | |
parent | 556d0d40eb33295a934eb6b906598fc94771d9c1 (diff) |
Merge pull request #151 from shadlaws/jquery_context_menus
Context menus are fixed!
Diffstat (limited to 'lib')
-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"); } }; |