diff options
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 6b475ce35..d64b58c50 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1172,7 +1172,7 @@ function rcube_webmail() this.set_env('collapsed_folders', this.env.collapsed_folders+'&'+escape(id)+'&'); // select parent folder if one of its childs is currently selected - if (this.env.mailbox.indexOf(id) == 0) + if (this.env.mailbox.indexOf(id + this.env.delimiter) == 0) this.command('list', id); } this.http_post('save-pref', '_name=collapsed_folders&_value='+escape(this.env.collapsed_folders)); @@ -3506,7 +3506,7 @@ function rcube_webmail() { // add children's counters for (var k in this.env.unread_counts) - if (k.indexOf(mbox) == 0) { + if (k.indexOf(mbox + this.env.delimiter) == 0) { childcount += this.env.unread_counts[k]; } } |