Avoid useless reloading list when resetting search with active filter (#1490057)
| | |
| | | |
| | | // 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; |
| | |
| | | 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') { |