- Fix error in messages drag&drop action caused by r5146

release-0.7
alecpl 13 years ago
parent 43486922fa
commit b6a069e6ca

@ -1213,12 +1213,12 @@ function rcube_webmail()
this.drag_menu = function(e, target) this.drag_menu = function(e, target)
{ {
var modkey = rcube_event.get_modifier(e), var modkey = rcube_event.get_modifier(e),
menu = $('#'+this.gui_objects.message_dragmenu); menu = this.gui_objects.message_dragmenu;
if (menu && modkey == SHIFT_KEY && this.commands['copy']) { if (menu && modkey == SHIFT_KEY && this.commands['copy']) {
var pos = rcube_event.get_mouse_pos(e); var pos = rcube_event.get_mouse_pos(e);
this.env.drag_target = target; this.env.drag_target = target;
menu.css({top: (pos.y-10)+'px', left: (pos.x-10)+'px'}).show(); $(menu).css({top: (pos.y-10)+'px', left: (pos.x-10)+'px'}).show();
return true; return true;
} }
@ -1227,9 +1227,9 @@ function rcube_webmail()
this.drag_menu_action = function(action) this.drag_menu_action = function(action)
{ {
var menu = $('#'+this.gui_objects.message_dragmenu); var menu = this.gui_objects.message_dragmenu;
if (menu) { if (menu) {
menu.hide(); $(menu).hide();
} }
this.command(action, this.env.drag_target); this.command(action, this.env.drag_target);
this.env.drag_target = null; this.env.drag_target = null;

Loading…
Cancel
Save