summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-08-29 15:24:50 +0000
committerthomascube <thomas@roundcube.net>2008-08-29 15:24:50 +0000
commitdf0dd4f4bae69ff1eda30665f5e35929ff229645 (patch)
tree5b7310608cf09440b357fd6080da3d7dd1e0a390 /program
parent85360dc8df13c9641301f0b40b1ecf00d3c1e966 (diff)
Don't count myself
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js4
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];
}
}