Changeset 3390 for branches/2.2


Ignore:
Timestamp:
10/21/10 15:29:26 (14 years ago)
Author:
brunocosta
Message:

Ticket #730 - Verificação de criação e renomeação de pastas.

Location:
branches/2.2/expressoMail1_2/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/TreeShow.js

    r3213 r3390  
    109109                                                return false; //Não posso criar pastas contendo a string local_                                  
    110110                                        } 
     111                                        if(button.match(/[\/\\\!\@\#\$\%\&\*\(\)]/gi)){ 
     112                                            alert(get_lang("cannot create folder. try other folder name")); 
     113                                            return false; 
     114                                        } 
    111115 
    112116                                        if(trim(button) == "" || trim(button) == null){ 
     
    130134                                                return false; //Não posso criar pastas contendo a string local_                                  
    131135                                        } 
     136 
     137                                        if(button1.match(/[\/\\\!\@\#\$\%\&\*\(\)]/gi)){ 
     138                                            alert(get_lang("It's not possible rename this folder. try other folder name")); 
     139                                            return false; 
     140                                        } 
     141 
    132142                                        if(trim(button1) == "" || trim(button1) == null){ 
    133143                                                return false; 
  • branches/2.2/expressoMail1_2/js/local_messages.js

    r3380 r3390  
    716716    } catch (error) { 
    717717        this.finalize(); 
    718         throw error; 
    719718        return false; 
    720719    } 
  • branches/2.2/expressoMail1_2/js/messages_controller.js

    r3053 r3390  
    108108                if (this.is_local_folder(ttree.FOLDER)) { 
    109109                        folder = prompt(get_lang("Enter a name for the box"), ""); 
     110                        if(folder.match(/[\/\\\!\@\#\$\%\&\*\(\)]/gi)){ 
     111                            alert(get_lang("It's not possible rename this folder. try other folder name")); 
     112                            return false; 
     113                        } 
    110114                        if(trim(folder) == "" || trim(folder) == null){ 
    111115                                alert(get_lang("you have to enter the name of the new folder")); 
     
    130134                                alert(get_lang("you have to enter the name of the new folder")); 
    131135                                return false; 
     136                        } 
     137                        if(folder.match(/[\/\\\!\@\#\$\%\&\*\(\)]/gi)){ 
     138                            alert(get_lang("cannot create folder. try other folder name")); 
     139                            return false; 
    132140                        } 
    133141                        if(ttree.FOLDER=="local_root") 
Note: See TracChangeset for help on using the changeset viewer.