From 340cf8204c21806074051e7500c5f171cae08a59 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 11 Apr 2011 19:30:54 +0000 Subject: [PATCH] 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 --- public/javascripts/context_menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) { -- 2.39.5