From 853696b15a11708e04412001f68a516f2332363c Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Mon, 05 Sep 2011 04:49:04 -0400 Subject: [PATCH] Backport changes from trunk up to r5164 --- program/js/app.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 1497361..dc7aa3d 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -990,7 +990,9 @@ // reset quicksearch case 'reset-search': var n, s = this.env.search_request || this.env.qsearch; + this.reset_qsearch(); + this.select_all_mode = false; if (s && this.env.mailbox) this.list_mailbox(this.env.mailbox); @@ -1212,12 +1214,12 @@ 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; } @@ -1226,9 +1228,9 @@ 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; -- Gitblit v1.9.1