diff options
author | thomascube <thomas@roundcube.net> | 2008-08-29 13:40:50 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-08-29 13:40:50 +0000 |
commit | 5907c56e4d81bcae6189bb8768fb1a8051a71307 (patch) | |
tree | cb27c576d917d2fc5b61e02522578c4efa13c703 /program/js | |
parent | 835a0cabaa9cd8e17e02d9c9df0a449eb45677f1 (diff) |
Select parent folder when collapsing if one of its childs is currently selected
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 4 |
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); |