summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-15 17:27:52 +0000
committeralecpl <alec@alec.pl>2008-10-15 17:27:52 +0000
commit701b9a7c6b22a912ce7312b684b130e2066b0ddd (patch)
tree812f816ee646339dc7c8ecb12331343e878d14e9 /program/js/app.js
parentb92a67483d467906f8e004718cd6b1f8fb1c0613 (diff)
- Add feedback and set busy when moving folder (#1485497)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 53a869f48..bea1dc4af 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2827,7 +2827,9 @@ function rcube_webmail()
var reg = new RegExp('[^'+RegExp.escape(this.env.delimiter)+']*['+RegExp.escape(this.env.delimiter)+']', 'g');
var basename = this.env.folder.replace(reg, '');
var newname = this.env.dstfolder==this.env.delimiter ? basename : this.env.dstfolder+this.env.delimiter+basename;
- this.http_post('rename-folder', '_folder_oldname='+urlencode(this.env.folder)+'&_folder_newname='+urlencode(newname));
+
+ this.set_busy(true, 'foldermoving');
+ this.http_post('rename-folder', '_folder_oldname='+urlencode(this.env.folder)+'&_folder_newname='+urlencode(newname), true);
}
this.drag_active = false;
this.unfocus_subscription(this.get_folder_row_id(this.env.dstfolder));