summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-23 16:55:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-02-23 16:55:32 +0000
commit3ab981c04c33ebc1a490063d2d626fa669721209 (patch)
treef97dddc6096873f7c2ad711f7a9f31786c593fe0 /public
parent0edde5da92e66bb685a58298d9dcfe0472155034 (diff)
downloadredmine-3ab981c04c33ebc1a490063d2d626fa669721209.tar.gz
redmine-3ab981c04c33ebc1a490063d2d626fa669721209.zip
Fixed: Bulk editing menu non-functional in Opera browser (#3132).
Contributed by Claudio Acciaresi. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4935 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/context_menu.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js
index 4bb73eec7..49d3f5208 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);