summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-09-02 06:45:39 +0000
committeralecpl <alec@alec.pl>2011-09-02 06:45:39 +0000
commitb6a069e6ca3e1a16d8ffed5f96ab5392d38fa453 (patch)
tree26bfd161ddeffd722998bed7d034ebb7bc36c018
parent43486922fac591683fcbe4335166c349f726c6eb (diff)
- Fix error in messages drag&drop action caused by r5146
-rw-r--r--program/js/app.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index adb7be8c8..e598dba8c 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1213,12 +1213,12 @@ function rcube_webmail()
this.drag_menu = function(e, target)
{
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']) {
var pos = rcube_event.get_mouse_pos(e);
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;
}
@@ -1227,9 +1227,9 @@ function rcube_webmail()
this.drag_menu_action = function(action)
{
- var menu = $('#'+this.gui_objects.message_dragmenu);
+ var menu = this.gui_objects.message_dragmenu;
if (menu) {
- menu.hide();
+ $(menu).hide();
}
this.command(action, this.env.drag_target);
this.env.drag_target = null;