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:
parent
34f1bc0f08
commit
340cf8204c
|
@ -36,7 +36,7 @@ ContextMenu.prototype = {
|
||||||
|
|
||||||
Click: function(e) {
|
Click: function(e) {
|
||||||
this.hideMenu();
|
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/))) {
|
if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) {
|
||||||
var tr = Event.findElement(e, 'tr');
|
var tr = Event.findElement(e, 'tr');
|
||||||
if (tr!=null && tr!=document && tr.hasClassName('hascontextmenu')) {
|
if (tr!=null && tr!=document && tr.hasClassName('hascontextmenu')) {
|
||||||
|
|
Loading…
Reference in New Issue