diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-25 15:00:44 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-25 15:00:44 -0700 |
commit | dc67de520d58838d0bf1ab2ba13135745b59facf (patch) | |
tree | fcdfb1186761e2b83f386db1fe338c912788bc44 /lib | |
parent | 88995e5a2e72fa45202f82ecd9220d3053ad2348 (diff) | |
parent | 0be38d143c44902f9482044da5f43c7a05134460 (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gallery.common.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 844e219b..a959d90d 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -112,15 +112,19 @@ }; $.fn.gallery_context_menu = function() { + var in_progress = 0; + $(".gContextMenu *").removeAttr('title'); $(".gContextMenu ul").hide(); $(".gContextMenu").hover( function() { - $(this).find("ul").slideDown("fast"); - $(this).find(".gDialogLink").gallery_dialog(); - $(this).find(".gAjaxLink").gallery_ajax(); + if (in_progress == 0) { + $(this).find("ul").slideDown("fast", function() { in_progress = 1; }); + $(this).find(".gDialogLink").gallery_dialog(); + $(this).find(".gAjaxLink").gallery_ajax(); + } }, function() { - $(this).find("ul").slideUp("slow"); + $(this).find("ul").slideUp("slow", function() { in_progress = 0; }); } ); }; |