diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-12 18:22:47 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-12 18:22:47 +0000 |
| commit | 1ac0e6096916d330cb50231d96db92aca4c1b8c9 (patch) | |
| tree | f5607fd97aeab77b528c18fb4eca5451e7b98a94 /roundcubemail/program/js | |
| parent | c585f7a40034c218e97f98bdd1776ad939615795 (diff) | |
Ignore clicks from input elements and images
git-svn-id: https://svn.roundcube.net/trunk@1051 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/list.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index 565d1b7b5..ad5763365 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/program/js/list.js @@ -3,7 +3,7 @@ | RoundCube List Widget | | | | This file is part of the RoundCube Webmail client | - | Copyright (C) 2006, RoundCube Dev, - Switzerland | + | Copyright (C) 2006-2008, RoundCube Dev, - Switzerland | | Licensed under the GNU GPL | | | +-----------------------------------------------------------------------+ @@ -210,7 +210,7 @@ drag_row: function(e, id) this.in_selection_before = this.in_selection(id) ? id : false; // don't do anything (another action processed before) - if (this.dont_select) + if (this.dont_select || (e.target && (e.target.tagName == 'INPUT' || e.target.tagName == 'IMG'))) return false; // selects currently unselected row @@ -239,7 +239,10 @@ click_row: function(e, id) { var now = new Date().getTime(); var mod_key = rcube_event.get_modifier(e); - + + if ((e.target && (e.target.tagName == 'INPUT' || e.target.tagName == 'IMG'))) + return false; + // don't do anything (another action processed before) if (this.dont_select) { |
