diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-01-16 15:41:19 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-01-16 15:41:19 +0100 |
commit | 2c33c7e38bc767330b4eebdc9e4d234caca72966 (patch) | |
tree | 4dc81413ed6366c0c942fb67ca8aa7e39d049647 /program/js/app.js | |
parent | 2baeac116abef9d5bcb748c687577d16dce868a0 (diff) |
Make message pagenav (prev/next) work with sorted multi-folder search results
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 2717e35d5..5eae82351 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -696,6 +696,7 @@ function rcube_webmail() break; case 'list': + // TODO: don't reset search but re-send for the new folder if (props && props != '') this.reset_qsearch(); if (this.env.action == 'compose' && this.env.extwin) @@ -1620,7 +1621,7 @@ function rcube_webmail() var uid = list.get_single_selection(); - if (uid && this.env.mailbox == this.env.drafts_mailbox) + if (uid && (this.env.messages[uid].mbox || this.env.mailbox) == this.env.drafts_mailbox) this.open_compose_step({ _draft_uid: uid, _mbox: this.env.mailbox }); else if (uid) this.show_message(uid, false, false); |