summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-12-02 07:39:24 +0000
committeralecpl <alec@alec.pl>2008-12-02 07:39:24 +0000
commitf1f17fa5a4284011bd4dbc00b33b61785fd5c645 (patch)
tree0c4999115b7153df35d209a67f87161f4aafa8e8 /program/js/app.js
parentffbf910df93d0a29fc8ea5a6fb0fa39e078fa77e (diff)
- fix collapsing of folders with plus sign in name (use urlencode instead of escape)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index f301e559c..81d8f86ca 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1210,7 +1210,7 @@ function rcube_webmail()
ul.style.display = '';
this.set_classname(div, 'collapsed', false);
this.set_classname(div, 'expanded', true);
- var reg = new RegExp('&'+escape(id)+'&');
+ var reg = new RegExp('&'+urlencode(id)+'&');
this.set_env('collapsed_folders', this.env.collapsed_folders.replace(reg, ''));
}
else
@@ -1218,8 +1218,8 @@ function rcube_webmail()
ul.style.display = 'none';
this.set_classname(div, 'expanded', false);
this.set_classname(div, 'collapsed', true);
- this.set_env('collapsed_folders', this.env.collapsed_folders+'&'+escape(id)+'&');
-
+ this.set_env('collapsed_folders', this.env.collapsed_folders+'&'+urlencode(id)+'&');
+
// select parent folder if one of its childs is currently selected
if (this.env.mailbox.indexOf(id + this.env.delimiter) == 0)
this.command('list', id);
@@ -1236,7 +1236,7 @@ function rcube_webmail()
li.nextSibling.getElementsByTagName("ul")[0].style.display = '';
}
- this.http_post('save-pref', '_name=collapsed_folders&_value='+escape(this.env.collapsed_folders));
+ this.http_post('save-pref', '_name=collapsed_folders&_value='+urlencode(this.env.collapsed_folders));
this.set_unread_count_display(id, false);
}
}