summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-01-16 09:47:46 +0100
committerAleksander Machniak <alec@alec.pl>2015-01-16 09:47:46 +0100
commitb7e3b15a8a551092a69a43cb7f6af8726988f723 (patch)
treec9e51a2df24f0a6f0593d8a2f63d409fe1d4d338
parentf4154d91080fcd2404102e8d57679f42af96ef2e (diff)
Fix javascript error in "IE 8.0/Tablet PC" browser (#1490210)
-rw-r--r--CHANGELOG1
-rw-r--r--program/js/app.js2
-rw-r--r--program/js/list.js2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 0cced982c..f7d9619f5 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -10,6 +10,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where Drafts list wasn't updated on draft-save action in new window (#1490225)
- Fix so "set as default" option is hidden if identities_level > 1 (#1490226)
- Fix bug where search was reset after returning from compose visited for reply
+- Fix javascript error in "IE 8.0/Tablet PC" browser (#1490210)
RELEASE 1.1-rc
--------------
diff --git a/program/js/app.js b/program/js/app.js
index 399e903bf..d4169deef 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1954,7 +1954,7 @@ function rcube_webmail()
// attach events
$.each(fn, function(i, f) {
row[i].onclick = function(e) { f(e); return rcube_event.cancel(e); };
- if (bw.touch) {
+ if (bw.touch && row[i].addEventListener) {
row[i].addEventListener('touchend', function(e) {
if (e.changedTouches.length == 1) {
f(e);
diff --git a/program/js/list.js b/program/js/list.js
index bbf6e1e01..9a7f2840e 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -154,7 +154,7 @@ init_row: function(row)
row.onmousedown = function(e){ return self.drag_row(e, this.uid); };
row.onmouseup = function(e){ if (e.which == 1) return self.click_row(e, this.uid); };
- if (bw.touch) {
+ if (bw.touch && row.addEventListener) {
row.addEventListener('touchstart', function(e) {
if (e.touches.length == 1) {
self.touchmoved = false;