]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Bulk editing menu non-functional in Opera browser (#3132).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 23 Feb 2011 16:55:32 +0000 (16:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 23 Feb 2011 16:55:32 +0000 (16:55 +0000)
Contributed by Claudio Acciaresi.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4935 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/context_menu.js

index 4bb73eec759257b7fd795a18d606062b25a13ffe..49d3f52083a4734eee102a8dfcc9110a97b331c8 100644 (file)
@@ -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);