From 88b4231d98593abb2f1a3d3b106a012905bc6b19 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Fri, 16 Aug 2013 06:03:57 -0400
Subject: [PATCH] Fix touch check when IE (7|8) doesn't specify the event object

---
 program/js/list.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/js/list.js b/program/js/list.js
index 76582d1..c2ad3f7 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -416,7 +416,7 @@
   if (rcube_event.get_button(e) == 2)
     return true;
 
-  this.in_selection_before = e.istouch || this.in_selection(id) ? id : false;
+  this.in_selection_before = e && e.istouch || this.in_selection(id) ? id : false;
 
   // selects currently unselected row
   if (!this.in_selection_before) {

--
Gitblit v1.9.1