Thomas Bruederli
2013-08-14 deacf16beed87fde254a419ad10bc5d4528aaa31
Make thread toggles work on touch devices
1 files modified
8 ■■■■■ changed files
program/js/app.js 8 ●●●●● patch | view | raw | blame | history
program/js/app.js
@@ -1733,6 +1733,14 @@
    if (!row.depth && row.has_children && (expando = document.getElementById('rcmexpando'+row.uid))) {
      row.expando = expando;
      expando.onmousedown = function(e) { return self.expand_message_row(e, uid); };
      if (bw.mobile) {
        expando.addEventListener('touchend', function(e) {
          if (e.changedTouches.length == 1) {
            self.expand_message_row(e, uid);
            return rcube_event.cancel(e);
          }
        }, false);
      }
    }
    this.triggerEvent('insertrow', { uid:uid, row:row });