diff options
author | svncommit <devs@roundcube.net> | 2007-10-17 07:56:50 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2007-10-17 07:56:50 +0000 |
commit | 1d1bc5da43ddba270634201aec74e065268979cf (patch) | |
tree | 3394ca5262fb5df526eba9d1c6be7d6d40c89c2f | |
parent | ecd2e7961433462d01dabc38d1fd090431f70566 (diff) |
Clear folder selection when a protected folder is clicked.
-rw-r--r-- | program/js/app.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index 2d95281c0..356e27a2f 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2503,9 +2503,14 @@ function rcube_webmail() var id; if (id = list.get_single_selection()) { - var folder = this.env.subscriptionrows['rcmrow'+id][0]; - if (find_in_array(this.env.defaultfolders, folder)!=0) - this.set_env('folder', folder); + if (this.env.subscriptionrows['rcmrow'+id]) + { + var folder = this.env.subscriptionrows['rcmrow'+id][0]; + if (find_in_array(this.env.defaultfolders, folder)!=0) + this.set_env('folder', folder); + } + else + list.clear_selection(); } }; |