summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-02-18 16:15:49 +0100
committershadlaws <shad@shadlaws.com>2013-02-18 16:15:49 +0100
commit556d0d40eb33295a934eb6b906598fc94771d9c1 (patch)
treece5b03c0f1800161c59bf5fb7a39babeb2010b5a /lib
parent9345dde83e1f092a9309c45282dc21e3fd408875 (diff)
Context menus are fixed! This should be fully compatible with older themes
since only gallery.common.js is modified. Now that I understand the problem and the fix, I'm not sure I can explain why it *used* to work with older jQuery...
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js7
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");
}
};