diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-01-16 09:47:46 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-01-16 09:50:40 +0100 |
commit | 7c26dbd36fdfa4f2f70d878d420ee59ad5c2aaac (patch) | |
tree | 7cc4eea6979144254830be4c2c3c3ef53cbfbea9 /program | |
parent | f640e144dc1ee8eb663d25fa265ca5a796b348d2 (diff) |
Fix javascript error in "IE 8.0/Tablet PC" browser (#1490210)
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 2 | ||||
-rw-r--r-- | program/js/list.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 17fc99dc2..123f1fec5 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1808,7 +1808,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 fd14c630c..8072dd892 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -118,7 +118,7 @@ init_row: function(row) row.onmousedown = function(e){ return self.drag_row(e, this.uid); }; row.onmouseup = function(e){ 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; |