Changeset 5864 for trunk/expressoMail1_2/js/messages_controller.js
- Timestamp:
- 04/03/12 09:24:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/messages_controller.js
r5172 r5864 126 126 127 127 messages_proxy.prototype.proxy_rename_folder = function(){ 128 129 if (ttree. FOLDER == 'local_Inbox') {130 alert(get_lang("It's not possible rename the folder: ") + lang_folder( ttree.FOLDER.substr(6))+ '.');128 var specialFolders = special_folders[ttree.getFolder().split(cyrus_delimiter)[ttree.getFolder().split(cyrus_delimiter).length-1]]; 129 if (ttree.getFolder() == 'INBOX' || specialFolders ) { 130 alert(get_lang("It's not possible rename the folder: ") + lang_folder((specialFolders ? specialFolders : ttree.getFolder()))+ '.'); 131 131 return false; 132 132 } 133 if(ttree.FOLDER == 'local_root') { 134 alert(get_lang("It's not possible rename this folder!")); 133 if(ttree.getFolder() == 'root') { 134 alert(get_lang("It's not possible rename this folder!")); 135 return false; 136 } 137 if(!specialFolders && ttree.getFolder() == get_current_folder()){ 138 alert(get_lang("It's not possible rename this folder, because it is being used in the moment!")); 135 139 return false; 136 140 } 137 if(ttree.FOLDER.match("^local_.*$") && ttree.FOLDER == get_current_folder()){138 alert(get_lang("It's not possible rename this folder, because it is being used in the moment!"));139 return false;140 }141 141 142 if (this.is_local_folder(ttree. FOLDER)) {142 if (this.is_local_folder(ttree.getFolder())) { 143 143 folder = prompt(get_lang("Enter a name for the box"), ""); 144 145 146 144 if(folder.match(/[\/\\\!\@\#\$\%\&\*\+\(\)]/gi)){ 145 alert(get_lang("It's not possible rename this folder. try other folder name")); 146 return false; 147 147 } 148 148 if(trim(folder) == "" || trim(folder) == null){
Note: See TracChangeset
for help on using the changeset viewer.