(Properly) reset search filter on reset-search action

pull/268/head
Aleksander Machniak 10 years ago
parent da1816edd8
commit d12b999403

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

Loading…
Cancel
Save