Reverted r17252 and r17253 (#26655).

The change breaks the test suite. 


git-svn-id: http://svn.redmine.org/redmine/trunk@17254 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2018-04-02 02:24:35 +00:00
parent 1046189079
commit fec2832fe3
60 changed files with 8 additions and 77 deletions

View File

@@ -5,7 +5,7 @@ var contextMenuObserving;
function contextMenuRightClick(event) {
var target = $(event.target);
if (target.is('a:not(.js-contextmenu)')) {return;}
if (target.is('a')) {return;}
var tr = target.closest('.hascontextmenu').first();
if (tr.length < 1) {return;}
event.preventDefault();
@@ -218,7 +218,6 @@ function contextMenuInit() {
if (!contextMenuObserving) {
$(document).click(contextMenuClick);
$(document).contextmenu(contextMenuRightClick);
$(document).on('click', '.js-contextmenu', contextMenuRightClick);
contextMenuObserving = true;
}
}