(Properly) reset search filter on reset-search action

pull/280/head
Aleksander Machniak 10 years ago
parent 1e7c877a66
commit 2ea55829be

@ -1221,8 +1221,7 @@ function rcube_webmail()
// reset quicksearch
case 'reset-search':
var n, s = this.env.search_request || this.env.qsearch,
ss = this.gui_objects.qsearchbox && this.gui_objects.qsearchbox.value != '';
var n, s = this.env.search_request || this.env.qsearch;
this.reset_qsearch(true);
this.select_all_mode = false;
@ -1231,7 +1230,7 @@ function rcube_webmail()
if (this.contact_list)
this.list_contacts_clear();
}
else if (s && ss && this.env.mailbox) {
else if (s && this.env.mailbox) {
this.list_mailbox(this.env.mailbox, 1);
}
else if (s && this.task == 'addressbook') {

Loading…
Cancel
Save