summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-12 18:41:53 +0000
committerthomascube <thomas@roundcube.net>2008-02-12 18:41:53 +0000
commita8d23d82a296cab71bd2f2b71dad6dca58a643d6 (patch)
tree174dbf4e89fa260cc720185c8923b5d689692fcb /program/js
parent0b7cd3460c9b96008cd8e6d4c3df9482e6621ee2 (diff)
Show message count in folder list and hint when creating a subfolder
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 2c212a80e..07b42a5f5 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2551,6 +2551,9 @@ function rcube_webmail()
this.set_env('folder', folder);
else
this.set_env('folder', null);
+
+ if (this.gui_objects.createfolderhint)
+ this.gui_objects.createfolderhint.innerHTML = this.env.folder ? this.get_label('addsubfolderhint') : '';
};
@@ -2573,13 +2576,13 @@ function rcube_webmail()
// tell server to create and subscribe a new mailbox
this.create_folder = function(name)
{
- if (this.edit_folder)
- this.reset_folder_rename();
+ if (this.edit_folder)
+ this.reset_folder_rename();
var form;
if ((form = this.gui_objects.editform) && form.elements['_folder_name'])
name = form.elements['_folder_name'].value;
- if (this.env.folder)
+ if (this.env.folder && name != '')
name = this.env.folder+this.env.delimiter+name;
if (name)