diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-28 20:32:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-02-28 20:32:25 +0000 |
commit | 91295ea6cdf434e6f9d3fc378d0a5ff3b6fb9152 (patch) | |
tree | dc3b7b910f6aa632c365331d0e376c93c0631700 | |
parent | d0f4b5aa507a9b1ea32befef70b01286a7ac6ddb (diff) | |
download | redmine-91295ea6cdf434e6f9d3fc378d0a5ff3b6fb9152.tar.gz redmine-91295ea6cdf434e6f9d3fc378d0a5ff3b6fb9152.zip |
Merged r4935 and r4947 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4970 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | public/javascripts/context_menu.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js index 4bb73eec7..3485ead8e 100644 --- a/public/javascripts/context_menu.js +++ b/public/javascripts/context_menu.js @@ -11,7 +11,7 @@ ContextMenu.prototype = { if (!observingContextMenuClick) { Event.observe(document, 'click', this.Click.bindAsEventListener(this)); - Event.observe(document, (window.opera ? 'click' : 'contextmenu'), this.RightClick.bindAsEventListener(this)); + Event.observe(document, 'contextmenu', this.RightClick.bindAsEventListener(this)); observingContextMenuClick = true; } @@ -23,8 +23,6 @@ ContextMenu.prototype = { this.hideMenu(); // do not show the context menu on links if (Event.element(e).tagName == 'A') { return; } - // right-click simulated by Alt+Click with Opera - if (window.opera && !e.altKey) { return; } var tr = Event.findElement(e, 'tr'); if (tr == document || tr == undefined || !tr.hasClassName('hascontextmenu')) { return; } Event.stop(e); @@ -39,7 +37,6 @@ ContextMenu.prototype = { Click: function(e) { this.hideMenu(); if (Event.element(e).tagName == 'A') { return; } - if (window.opera && e.altKey) { return; } if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) { var tr = Event.findElement(e, 'tr'); if (tr!=null && tr!=document && tr.hasClassName('hascontextmenu')) { |