summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-05-30 13:27:13 +0000
committerthomascube <thomas@roundcube.net>2008-05-30 13:27:13 +0000
commit134eafd5b85ff80351a84c1b3e0399c2b8839a73 (patch)
treeb37b8421ab936538c4f8eb341cf0dc08ecc1ebb6 /program/js/app.js
parent6eaac22d3244763800f4ce8e60bfb5c67f46b710 (diff)
Tell the user which character is forbidden + add translation
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 5f8d125f6..2cbd27b81 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2652,7 +2652,7 @@ function rcube_webmail()
if (name.indexOf(this.env.delimiter)>=0)
{
- alert(this.get_label('forbiddencharacter'));
+ alert(this.get_label('forbiddencharacter')+' ('+this.env.delimiter+')');
return false;
}
@@ -2724,15 +2724,15 @@ function rcube_webmail()
var newname = this.name_input ? this.name_input.value : null;
if (this.edit_folder && newname)
{
- if (newname.indexOf(this.env.delimiter)>=0)
+ if (newname.indexOf(this.env.delimiter)>=0)
{
- alert(this.get_label('forbiddencharacter'));
+ alert(this.get_label('forbiddencharacter')+' ('+this.env.delimiter+')');
return false;
}
if (this.name_input.__parent)
newname = this.name_input.__parent + this.env.delimiter + newname;
-
+
this.http_post('rename-folder', '_folder_oldname='+urlencode(this.env.subscriptionrows[this.edit_folder][0])+'&_folder_newname='+urlencode(newname));
}
}