diff --git a/editor/lib/contextmenu/jquery.contextMenu.js b/editor/lib/contextmenu/jquery.contextMenu.js index 46be3ad..95c8d2b 100755 --- a/editor/lib/contextmenu/jquery.contextMenu.js +++ b/editor/lib/contextmenu/jquery.contextMenu.js @@ -138,16 +138,7 @@ if(jQuery)( function() { }, 0); } - - - // Disable text selection - if( $.browser.mozilla ) { - $('#' + o.menu).each( function() { $(this).css({ 'MozUserSelect' : 'none' }); }); - } else if( $.browser.msie ) { - $('#' + o.menu).each( function() { $(this).bind('selectstart.disableTextSelect', function() { return false; }); }); - } else { - $('#' + o.menu).each(function() { $(this).bind('mousedown.disableTextSelect', function() { return false; }); }); - } + // Disable browser context menu (requires both selectors to work in IE/Safari + FF/Chrome) $(el).add($('UL.contextMenu')).bind('contextmenu', function() { return false; });