summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-12 18:22:47 +0000
committerthomascube <thomas@roundcube.net>2008-02-12 18:22:47 +0000
commit0b7cd3460c9b96008cd8e6d4c3df9482e6621ee2 (patch)
treea6db52f575eab6bf6ac38d3a6090a550b5e9af1a /program
parentddc34f98d5d0a4669fd0d74cf5e9c549adc87e41 (diff)
Ignore clicks from input elements and images
Diffstat (limited to 'program')
-rw-r--r--program/js/list.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 565d1b7b5..ad5763365 100644
--- a/program/js/list.js
+++ b/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)
{