diff --git a/program/js/app.js b/program/js/app.js index a178a3eb7..8853335ac 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -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') {