diff options
author | Go MAEDA <maeda@farend.jp> | 2018-04-02 01:42:01 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-04-02 01:42:01 +0000 |
commit | a17661e8d80d042da4c1ac0eed218b979e3fbd46 (patch) | |
tree | 199c0992549f89fcfe4ef34dfa867f48cade94fa /public/javascripts/context_menu.js | |
parent | ed48b0708a7e0753b2e1f7916775069254c019b2 (diff) | |
download | redmine-a17661e8d80d042da4c1ac0eed218b979e3fbd46.tar.gz redmine-a17661e8d80d042da4c1ac0eed218b979e3fbd46.zip |
Use button as additional option for contextmenu (#26655).
Patch by Felix Gliesche.
git-svn-id: http://svn.redmine.org/redmine/trunk@17252 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts/context_menu.js')
-rw-r--r-- | public/javascripts/context_menu.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js index cd2cf0884..9bc64b171 100644 --- a/public/javascripts/context_menu.js +++ b/public/javascripts/context_menu.js @@ -5,7 +5,7 @@ var contextMenuObserving; function contextMenuRightClick(event) { var target = $(event.target); - if (target.is('a')) {return;} + if (target.is('a:not(.js-contextmenu)')) {return;} var tr = target.closest('.hascontextmenu').first(); if (tr.length < 1) {return;} event.preventDefault(); @@ -218,6 +218,7 @@ function contextMenuInit() { if (!contextMenuObserving) { $(document).click(contextMenuClick); $(document).contextmenu(contextMenuRightClick); + $(document).on('click', '.js-contextmenu', contextMenuRightClick); contextMenuObserving = true; } } |