summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-10-17 07:56:50 +0000
committersvncommit <devs@roundcube.net>2007-10-17 07:56:50 +0000
commit1d1bc5da43ddba270634201aec74e065268979cf (patch)
tree3394ca5262fb5df526eba9d1c6be7d6d40c89c2f /program
parentecd2e7961433462d01dabc38d1fd090431f70566 (diff)
Clear folder selection when a protected folder is clicked.
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js11
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();
}
};