diff options
author | alecpl <alec@alec.pl> | 2011-09-08 15:16:56 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-09-08 15:16:56 +0000 |
commit | d96dc639fce2c2e3d1745dacd64a38dbf2bfd4a5 (patch) | |
tree | f983c942e051a8780c1cab88c6e67eff0a9ef041 /program/js | |
parent | 9fa938739d3e70fc1580e8055f92c6c214a378f1 (diff) |
- Merge r5194 from trunk
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/program/js/app.js b/program/js/app.js index dc7aa3de3..062eee2da 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -995,14 +995,14 @@ function rcube_webmail() this.select_all_mode = false; if (s && this.env.mailbox) - this.list_mailbox(this.env.mailbox); + this.list_mailbox(this.env.mailbox, 1); else if (s && this.task == 'addressbook') { if (this.env.source == '') { for (n in this.env.address_sources) break; this.env.source = n; this.env.group = ''; } - this.list_contacts(this.env.source, this.env.group); + this.list_contacts(this.env.source, this.env.group, 1); } break; @@ -2795,14 +2795,15 @@ function rcube_webmail() this.expunge_mailbox = function(mbox) { - var lock = false, - url = '_mbox='+urlencode(mbox); + var lock, url = '_mbox='+urlencode(mbox); // lock interface if it's the active mailbox if (mbox == this.env.mailbox) { - lock = this.set_busy(true, 'loading'); - url += '&_reload=1'; - } + lock = this.set_busy(true, 'loading'); + url += '&_reload=1'; + if (this.env.search_request) + url += '&_search='+this.env.search_request; + } // send request to server this.http_post('expunge', url, lock); |