From 3c7c027dc9f358c3f778f2dc24516bc02935812d Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 29 Aug 2008 15:24:50 +0000 Subject: Don't count myself git-svn-id: https://svn.roundcube.net/trunk@1706 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 6b475ce35..d64b58c50 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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]; } } -- cgit v1.2.3