summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-08-29 13:40:50 +0000
committerthomascube <thomas@roundcube.net>2008-08-29 13:40:50 +0000
commit5907c56e4d81bcae6189bb8768fb1a8051a71307 (patch)
treecb27c576d917d2fc5b61e02522578c4efa13c703 /program/js/app.js
parent835a0cabaa9cd8e17e02d9c9df0a449eb45677f1 (diff)
Select parent folder when collapsing if one of its childs is currently selected
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c94db5ca3..4ed67cbc0 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1169,6 +1169,10 @@ function rcube_webmail()
this.set_classname(div, 'expanded', false);
this.set_classname(div, 'collapsed', true);
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)
+ this.command('list', id);
}
this.http_post('save-pref', '_name=collapsed_folders&_value='+escape(this.env.collapsed_folders));
this.set_unread_count_display(id, false);