summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-09-27 14:37:19 +0000
committersvncommit <devs@roundcube.net>2007-09-27 14:37:19 +0000
commitca2b4ddfcc7a506925c9d5b3a798a4c74147c2e1 (patch)
tree73295276056561f92f5a7cd05358de0055b4cdb1 /program
parentf6d8dcee9428b264633954f30a50df602b685d41 (diff)
Remove unused code.
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 5b30d0914..a40c8c319 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2550,25 +2550,6 @@ function rcube_webmail()
// rename a specific mailbox
if (props)
this.edit_foldername(props);
-
- // use a dropdown and input field (old behavior)
- else if ((form = this.gui_objects.editform) && form.elements['_folder_oldname'] && form.elements['_folder_newname'])
- {
- oldname = form.elements['_folder_oldname'].value;
- newname = form.elements['_folder_newname'].value;
- }
-
- if (oldname && newname)
- {
- this.http_post('rename-folder', '_folder_oldname='+urlencode(oldname)+'&_folder_newname='+urlencode(newname));
- for (var row in this.env.subscriptionrows)
- if (this.env.subscriptionrows[row][0].match(new RegExp('^'+RegExp.escape(oldname+this.env.delimiter))))
- {
- var subnewname = this.env.subscriptionrows[row][0].replace(new RegExp('^'+RegExp.escape(oldname+this.env.delimiter)), newname+this.env.delimiter);
- this.http_post('rename-folder', '_folder_oldname='+urlencode(this.env.subscriptionrows[row][0])+
- '&_folder_newname='+urlencode(subnewname));
- }
- }
};
@@ -2650,12 +2631,7 @@ function rcube_webmail()
this.reset_folder_rename();
if (folder)
- {
this.http_post('delete-folder', '_mboxes='+urlencode(folder));
- for (var row in this.env.subscriptionrows)
- if (this.env.subscriptionrows[row][0].match(new RegExp('^'+RegExp.escape(folder+this.env.delimiter))))
- this.http_post('delete-folder', '_mboxes='+urlencode(this.env.subscriptionrows[row][0]));
- }
};