summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-08-11 00:40:14 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-08-11 00:40:14 -0600
commit65e97fda48620a0808c0cd4414aa9e0656f482ed (patch)
treec862f0835631d20b9a2c6ee48d4234b47e176430 /lib
parent99d7a0c0dbb799ba64d769475a1534650e98e5b6 (diff)
Move context menu to gallery.common
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index 317a73e7..e00eb62a 100644
--- a/lib/gallery.common.js
+++ b/lib/gallery.common.js
@@ -110,5 +110,20 @@
$.gallery_replace_image = function(data, thumb) {
$(thumb).attr({src: data.src, width: data.width, height: data.height});
};
+
+ $.fn.gallery_context_menu = function() {
+ $(".gContextMenu ul").hide();
+ $(".gContextMenu").hover(
+ function() {
+ $(this).find("ul").slideDown("fast");
+ $(this).find(".gDialogLink").gallery_dialog();
+ $(this).find(".gAjaxLink").gallery_ajax();
+ },
+ function() {
+ $(this).find("ul").slideUp("slow");
+ }
+ );
+ };
+
})(jQuery);