mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
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
This commit is contained in:
@@ -11,7 +11,7 @@ ContextMenu.prototype = {
|
|||||||
|
|
||||||
if (!observingContextMenuClick) {
|
if (!observingContextMenuClick) {
|
||||||
Event.observe(document, 'click', this.Click.bindAsEventListener(this));
|
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;
|
observingContextMenuClick = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,8 +23,6 @@ ContextMenu.prototype = {
|
|||||||
this.hideMenu();
|
this.hideMenu();
|
||||||
// do not show the context menu on links
|
// do not show the context menu on links
|
||||||
if (Event.element(e).tagName == 'A') { return; }
|
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');
|
var tr = Event.findElement(e, 'tr');
|
||||||
if (tr == document || tr == undefined || !tr.hasClassName('hascontextmenu')) { return; }
|
if (tr == document || tr == undefined || !tr.hasClassName('hascontextmenu')) { return; }
|
||||||
Event.stop(e);
|
Event.stop(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user