Patch for jquery.contextmenu.js. Add jquery.contextmenu.js to Closure compiler step in Makefile

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2060 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2012-03-17 17:45:28 +00:00
parent 2b669ce556
commit 5786a1bc30
3 changed files with 7 additions and 3 deletions

View File

@@ -38,12 +38,12 @@ if(jQuery)( function() {
menu.addClass('contextMenu');
// Simulate a true right click
$(this).mousedown( function(e) {
$(this).bind( "contextmenu mousedown", function(e) {
var evt = e;
$(this).mouseup( function(e) {
var srcElement = $(this);
srcElement.unbind('mouseup');
if( evt.button === 2 || o.allowLeft) {
if( evt.button === 2 || o.allowLeft || evt.type === "contextmenu" ) {
e.stopPropagation();
// Hide context menus that may be showing
$(".contextMenu").hide();