]> source.dussan.org Git - redmine.git/commitdiff
Do not select the row when clicking on an image.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 11 Apr 2011 19:30:54 +0000 (19:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 11 Apr 2011 19:30:54 +0000 (19:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5425 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/context_menu.js

index 459859af1a140306fd63af539247166e84109b89..10f41dc477539146390654bb2bcf602f125ad755 100644 (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')) {