|
|
@ -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);
|
|
|
|
},
|
|
|
|
},
|
|
|
|