diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2014-12-18 13:03:37 +0100 |
---|---|---|
committer | Thomas Bruederli <bruederli@kolabsys.com> | 2014-12-18 13:03:37 +0100 |
commit | da0d0aca2ab098382237e0ea6f04b37d97129f87 (patch) | |
tree | b86fddecd997c23d070a4bf05f0a881e8e60d6f9 | |
parent | cc5e4452db98bae796b344e8ab5d6cde0bd3c965 (diff) |
Avoid useless reloading list when resetting search with active filter (#1490057)
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 4e65a9c6d..e92078961 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1215,7 +1215,8 @@ function rcube_webmail() // reset quicksearch 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(); this.select_all_mode = false; @@ -1224,7 +1225,7 @@ function rcube_webmail() if (this.contact_list) this.list_contacts_clear(); } - else if (s && this.env.mailbox) { + else if (s && ss && this.env.mailbox) { this.list_mailbox(this.env.mailbox, 1); } else if (s && this.task == 'addressbook') { |