summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-11 19:30:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-11 19:30:54 +0000
commit340cf8204c21806074051e7500c5f171cae08a59 (patch)
treee6b9d4f87b6e2967682aaad459b23d34f597ab77 /public
parent34f1bc0f08153a4e4c0b0b3639ea97b91e6e816f (diff)
downloadredmine-340cf8204c21806074051e7500c5f171cae08a59.tar.gz
redmine-340cf8204c21806074051e7500c5f171cae08a59.zip
Do not select the row when clicking on an image.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5425 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/context_menu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js
index 459859af1..10f41dc47 100644
--- a/public/javascripts/context_menu.js
+++ b/public/javascripts/context_menu.js
@@ -36,7 +36,7 @@ ContextMenu.prototype = {
Click: function(e) {
this.hideMenu();
- if (Event.element(e).tagName == 'A') { return; }
+ if (Event.element(e).tagName == 'A' || Event.element(e).tagName == 'IMG') { return; }
if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) {
var tr = Event.findElement(e, 'tr');
if (tr!=null && tr!=document && tr.hasClassName('hascontextmenu')) {