Aleksander Machniak
2015-04-18 1af5595b901ae0866ad8c80dd23a4cd70ae6e585
Fix mouseup event handling when dragging a list record (#1490359)

This fixes drag-n-drop on managesieve filters list.
1 files modified
7 ■■■■ changed files
program/js/list.js 7 ●●●● patch | view | raw | blame | history
program/js/list.js
@@ -152,7 +152,12 @@
    // set eventhandlers to table row (only left-button-clicks in mouseup)
    $(row).mousedown(function(e) { return self.drag_row(e, this.uid); })
      .mouseup(function(e) { if (e.which == 1) return self.click_row(e, this.uid); });
      .mouseup(function(e) {
        if (e.which == 1 && !self.drag_active)
          return self.click_row(e, this.uid);
        else
          return true;
      });
    if (bw.touch && row.addEventListener) {
      row.addEventListener('touchstart', function(e) {