diff options
| author | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-10-17 07:56:50 +0000 |
|---|---|---|
| committer | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-10-17 07:56:50 +0000 |
| commit | 974746ce5810295b9d8cc688e76ff39df273d009 (patch) | |
| tree | 79a0415e4720e3f63a6379ae27bd2f89a1af4ce0 /roundcubemail/program/js | |
| parent | fb95cd9b59db49aae3bd9224327ffeb8a3e5d376 (diff) | |
Clear folder selection when a protected folder is clicked.
git-svn-id: https://svn.roundcube.net/trunk@876 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 2d95281c0..356e27a2f 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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(); } }; |
