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
This commit is contained in:
Jean-Philippe Lang 2011-04-11 19:30:54 +00:00
parent 34f1bc0f08
commit 340cf8204c
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {