summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);