diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-29 13:40:50 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-29 13:40:50 +0000 |
| commit | 15704ac506afe183b51402a13d0fb11648ebe5f6 (patch) | |
| tree | dbe1a02c1679bb8e5b3b5351ed823b12e8bc687d /roundcubemail/program | |
| parent | 5a99bae14a22da8ae155fbfbad0eca853f7cd4e5 (diff) | |
Select parent folder when collapsing if one of its childs is currently selected
git-svn-id: https://svn.roundcube.net/trunk@1703 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/js/app.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index c94db5ca3..4ed67cbc0 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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); |
