summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-12 19:54:16 +0000
committerthomascube <thomas@roundcube.net>2008-02-12 19:54:16 +0000
commita0ce2f0fa1873e45359d58e8c64e49fd80d9a692 (patch)
tree140191e41dabfa0ba02a5ad2c41a3d96c2e17e34 /program/js/list.js
parenta9a8ef2b5c39d340043a423be71bf38faef567c2 (diff)
Make script cross browser compatible
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/program/js/list.js b/program/js/list.js
index ad5763365..3255c1a3f 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -210,7 +210,8 @@ 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 || (e.target && (e.target.tagName == 'INPUT' || e.target.tagName == 'IMG')))
+ var evtarget = rcube_event.get_target(e);
+ if (this.dont_select || (evtarget && (evtarget.tagName == 'INPUT' || evtarget.tagName == 'IMG')))
return false;
// selects currently unselected row
@@ -239,8 +240,9 @@ click_row: function(e, id)
{
var now = new Date().getTime();
var mod_key = rcube_event.get_modifier(e);
+ var evtarget = rcube_event.get_target(e);
- if ((e.target && (e.target.tagName == 'INPUT' || e.target.tagName == 'IMG')))
+ if ((evtarget && (evtarget.tagName == 'INPUT' || evtarget.tagName == 'IMG')))
return false;
// don't do anything (another action processed before)