summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-17 07:01:11 +0000
committeralecpl <alec@alec.pl>2008-09-17 07:01:11 +0000
commitd93fc991a8e3a604cb38d6ee3f367d8363f22bc7 (patch)
tree56cd2d4bba65638069f61497b0c4881526e16a65 /program
parent5758b9b32ad4657ccb1d386d21ec498878d2be52 (diff)
- Display progress message for folders create/delete/rename operations (#1485357)
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js5
-rw-r--r--program/localization/en_GB/messages.inc3
-rw-r--r--program/localization/en_US/messages.inc3
-rw-r--r--program/localization/pl_PL/messages.inc3
-rw-r--r--program/steps/settings/manage_folders.inc2
5 files changed, 14 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 4bae0e349..1ee319bbd 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2913,6 +2913,7 @@ function rcube_webmail()
if (this.env.folder && name != '')
name = this.env.folder+this.env.delimiter+name;
+ this.set_busy(true, 'foldercreating');
this.http_post('create-folder', '_name='+urlencode(name), true);
}
else if (form.elements['_folder_name'])
@@ -2987,6 +2988,7 @@ function rcube_webmail()
if (this.name_input.__parent)
newname = this.name_input.__parent + this.env.delimiter + newname;
+ this.set_busy(true, 'folderrenaming');
this.http_post('rename-folder', '_folder_oldname='+urlencode(this.env.subscriptionrows[this.edit_folder][0])+'&_folder_newname='+urlencode(newname), true);
}
}
@@ -3006,7 +3008,8 @@ function rcube_webmail()
if (folder && confirm(this.get_label('deletefolderconfirm')))
{
- this.http_post('delete-folder', '_mboxes='+urlencode(folder));
+ this.set_busy(true, 'folderdeleting');
+ this.http_post('delete-folder', '_mboxes='+urlencode(folder), true);
this.set_env('folder', null);
if (this.gui_objects.createfolderhint)
diff --git a/program/localization/en_GB/messages.inc b/program/localization/en_GB/messages.inc
index 7ca8d28aa..3b0da6864 100644
--- a/program/localization/en_GB/messages.inc
+++ b/program/localization/en_GB/messages.inc
@@ -49,6 +49,9 @@ $messages['deletecontactconfirm'] = 'Do you really want to delete the selected c
$messages['deletemessagesconfirm'] = 'Do you really want to delete the selected message(s)?';
$messages['deletefolderconfirm'] = 'Do you really want to delete this folder?';
$messages['purgefolderconfirm'] = 'Do you really want to delete all messages in this folder?';
+$messages['foldercreating'] = 'Folder creating...';
+$messages['folderdeleting'] = 'Folder deleting...';
+$messages['folderrenaming'] = 'Folder renaming...';
$messages['formincomplete'] = 'The form was not completely filled out';
$messages['noemailwarning'] = 'Please enter a valid email address';
$messages['nonamewarning'] = 'Please enter a name';
diff --git a/program/localization/en_US/messages.inc b/program/localization/en_US/messages.inc
index 26e107f58..e7c64c0df 100644
--- a/program/localization/en_US/messages.inc
+++ b/program/localization/en_US/messages.inc
@@ -49,6 +49,9 @@ $messages['deletecontactconfirm'] = 'Do you really want to delete the selected
$messages['deletemessagesconfirm'] = 'Do you really want to delete the selected message(s)?';
$messages['deletefolderconfirm'] = 'Do you really want to delete this folder?';
$messages['purgefolderconfirm'] = 'Do you really want to delete all messages in this folder?';
+$messages['foldercreating'] = 'Folder creating...';
+$messages['folderdeleting'] = 'Folder deleting...';
+$messages['folderrenaming'] = 'Folder renaming...';
$messages['formincomplete'] = 'The form was not completely filled out';
$messages['noemailwarning'] = 'Please enter a valid email address';
$messages['nonamewarning'] = 'Please enter a name';
diff --git a/program/localization/pl_PL/messages.inc b/program/localization/pl_PL/messages.inc
index e1a2b20ec..8f7967b1e 100644
--- a/program/localization/pl_PL/messages.inc
+++ b/program/localization/pl_PL/messages.inc
@@ -54,6 +54,9 @@ $messages['deletecontactconfirm'] = 'Czy na pewno chcesz usunąć wybrane kontak
$messages['deletemessagesconfirm'] = 'Czy na pewno chcesz usunąć wybrane wiadomości?';
$messages['deletefolderconfirm'] = 'Czy na pewno chcesz usunąć wybrany folder?';
$messages['purgefolderconfirm'] = 'Czy na pewno chcesz usunąć wszystkie wiadomości w tym folderze?';
+$messages['foldercreating'] = 'Dodawanie folderu...';
+$messages['folderdeleting'] = 'Usuwanie folderu...';
+$messages['folderrenaming'] = 'Zmiana nazwy folderu...';
$messages['formincomplete'] = 'Uzupełnij formularz!';
$messages['noemailwarning'] = 'Podaj poprawny adres e-mail!';
$messages['nonamewarning'] = 'Podaj nazwę!';
diff --git a/program/steps/settings/manage_folders.inc b/program/steps/settings/manage_folders.inc
index 23680035b..28d02dfc0 100644
--- a/program/steps/settings/manage_folders.inc
+++ b/program/steps/settings/manage_folders.inc
@@ -346,7 +346,7 @@ $OUTPUT->add_handlers(array(
));
// add some labels to client
-rcube_add_label('deletefolderconfirm','addsubfolderhint','forbiddencharacter');
+$OUTPUT->add_label('deletefolderconfirm','addsubfolderhint','forbiddencharacter','folderdeleting','folderrenaming','foldercreating');
$OUTPUT->send('managefolders');
?>