Fix bug where message list columns could be in wrong order after column drag-n-drop and list sorting

pull/5265/head
Aleksander Machniak 9 years ago
parent 930a3ceac0
commit 378d10b748

@ -9,6 +9,7 @@ CHANGELOG Roundcube Webmail
- Managesieve: Unhide advanced rule controls if there are inputs with errors - Managesieve: Unhide advanced rule controls if there are inputs with errors
- Managesieve: Display warning message when filter form contains 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 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 RELEASE 1.2.0
------------- -------------

@ -1688,15 +1688,17 @@ column_drag_mouse_up: function(e)
this.col_draglayer = null; 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:'mousemove', object:this, method:'column_drag_mouse_move'});
rcube_event.remove_listener({event:'mouseup', object:this, method:'column_drag_mouse_up'}); rcube_event.remove_listener({event:'mouseup', object:this, method:'column_drag_mouse_up'});
// remove temp divs // remove temp divs
this.del_dragfix(); 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) { if (this.selected_column !== null && this.cols && this.cols.length) {
var i, cpos = 0, pos = rcube_event.get_mouse_pos(e); var i, cpos = 0, pos = rcube_event.get_mouse_pos(e);
@ -1712,8 +1714,7 @@ column_drag_mouse_up: function(e)
this.column_replace(this.selected_column, i); this.column_replace(this.selected_column, i);
} }
} }
}
this.triggerEvent('column_dragend', e);
return rcube_event.cancel(e); return rcube_event.cancel(e);
}, },

Loading…
Cancel
Save