diff options
author | thomascube <thomas@roundcube.net> | 2011-09-05 08:49:04 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-09-05 08:49:04 +0000 |
commit | 853696b15a11708e04412001f68a516f2332363c (patch) | |
tree | 0efe4416325ddc6872fc5d568d1fdf32e9b7662f /program/js | |
parent | b08caf5813c43e8648cdf5db1e003b3046a37c2c (diff) |
Backport changes from trunk up to r5164
Diffstat (limited to 'program/js')
-rw-r--r-- | 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 149736107..dc7aa3de3 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -990,7 +990,9 @@ function rcube_webmail() // 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 @@ 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; } @@ -1226,9 +1228,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; |