Aleksander Machniak
2016-05-20 378d10b748f71311e661cbbc722ea8f393294711
Fix bug where message list columns could be in wrong order after column drag-n-drop and list sorting
2 files modified
14 ■■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/js/list.js 13 ●●●● patch | view | raw | blame | history
CHANGELOG
@@ -9,6 +9,7 @@
- Managesieve: Unhide advanced rule controls if there are inputs with errors
- Managesieve: Display warning message when filter form contains errors
- Fix bug where errors could have been not logged when per_user_logging=true
- Fix bug where message list columns could be in wrong order after column drag-n-drop and list sorting
RELEASE 1.2.0
-------------
program/js/list.js
@@ -1688,14 +1688,16 @@
    this.col_draglayer = null;
  }
  if (this.col_drag_active)
    this.focus();
  this.col_drag_active = false;
  rcube_event.remove_listener({event:'mousemove', object:this, method:'column_drag_mouse_move'});
  rcube_event.remove_listener({event:'mouseup', object:this, method:'column_drag_mouse_up'});
  // remove temp divs
  this.del_dragfix();
  if (this.col_drag_active) {
    this.col_drag_active = false;
    this.focus();
    this.triggerEvent('column_dragend', e);
  if (this.selected_column !== null && this.cols && this.cols.length) {
    var i, cpos = 0, pos = rcube_event.get_mouse_pos(e);
@@ -1712,8 +1714,7 @@
      this.column_replace(this.selected_column, i);
    }
  }
  this.triggerEvent('column_dragend', e);
  }
  return rcube_event.cancel(e);
},