Ignore:
Timestamp:
06/10/08 16:40:13 (16 years ago)
Author:
niltonneto
Message:

Sincronização com versão publicada em 04/06/2008.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/js/jscode/maillists.js

    r283 r309  
    11countFiles = 0; 
    2 function validate_fields(type, restrictionsOnEmailLists) 
     2function validate_fields(type) 
    33{ 
    44        document.forms[0].uid.value = document.forms[0].uid.value.toLowerCase(); 
     
    66         
    77        if (document.forms[0].uid.value == ''){ 
    8                 alert(document.getElementById('login_field_has_spaces').value); 
     8                alert('Campo LOGIN da lista está vazio.'); 
    99                return; 
    1010        } 
    1111 
    1212        if (document.forms[0].cn.value == ''){ 
    13                 alert(document.getElementById('list_name_field_is_empty').value); 
    14                 return; 
    15         } 
    16          
    17         if (restrictionsOnEmailLists == 'true') 
     13                alert('Campo NOME da lista está vazio.'); 
     14                return; 
     15        } 
     16         
     17        if (document.forms[0].restrictionsOnEmailLists.value == 'true') 
    1818        { 
    1919                uid_tmp = document.forms[0].uid.value.split("-"); 
    2020                if ((uid_tmp.length < 3) || (uid_tmp[0] != 'lista')){ 
    21                         alert(document.getElementById('login_field_incomplete').value); 
     21                        alert( 
     22                                'O campo LOGIN da lista está incompleto.\n' + 
     23                                'O nome da lista deve ser formado assim:\n' + 
     24                                'lista-ORGANIZACAO-NOME_DA_LISTA.\n' + 
     25                                'Ex: lista-celepar-rh.'); 
    2226                        return; 
    2327                } 
     
    2529                 
    2630        if (document.forms[0].uid.value.split(" ").length > 1){ 
    27                 alert(document.getElementById('login_field_has_spaces').value); 
     31                alert('Campo LOGIN comtém espaços.'); 
    2832                document.forms[0].uid.focus(); 
    2933                return; 
     
    3135         
    3236        if (document.forms[0].mail.value == ''){ 
    33                 alert(document.getElementById('list_email_field_is_empty').value); 
     37                alert('Campo E-MAIL da lista está vazio.'); 
    3438                document.forms[0].mail.focus(); 
    3539                return; 
     
    3741        var reEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 
    3842        if(!reEmail.test(document.forms[0].mail.value)){ 
    39                 alert(document.getElementById('field_email_is_invalid').value); 
     43                alert("Campo E-mail não é válido."); 
    4044                return false; 
    4145        } 
     
    4347        select_userInMaillist = document.getElementById('ea_select_usersInMaillist'); 
    4448        if (select_userInMaillist.options.length == 0){ 
    45                 alert(document.getElementById('no_user_is_part_of_the_list').value); 
     49                alert('Nenhum usuário faz parte da lista.'); 
    4650                return; 
    4751        } 
     
    9195                alert(data.msg); 
    9296        else{ 
    93                 alert(document.getElementById('email_list_successfully_created').value); 
     97                alert('Lista de emails criada com êxito!'); 
    9498                location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    9599        } 
     
    108112                alert(data.msg); 
    109113        else{ 
    110                 alert(document.getElementById('email_list_successfully_saved').value); 
     114                alert('Lista de emails salva com êxito!!'); 
    111115                location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    112116        } 
     
    133137                alert(data.msg); 
    134138        else 
    135                 alert(document.getElementById('sending_control_list_successfully_saved').value); 
     139                alert('Sending Control List salva com êxito!!'); 
    136140        location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    137141        return; 
     
    181185        if ((recursive) && (document.forms[0].ldap_context.value == document.getElementById('ea_combo_org_maillists').value)) 
    182186        { 
    183             alert(document.getElementById('it_is_not_possible_select_users').value); 
     187                alert('Nao é possível selecionar todos os usuários da organização raiz.') 
    184188                document.getElementById('ea_check_allUsers').checked = false; 
    185189                 
     
    354358function delete_maillist(uid, uidnumber) 
    355359{ 
    356         if (confirm(document.getElementById('delete_list').value + " (" +  uid + ")")) 
     360        if (confirm("Realmente deletar Lista " + uid + " ??")) 
    357361        { 
    358362                var handler_delete_maillist = function(data) 
     
    361365                                alert(data.msg); 
    362366                        else 
    363                                 alert(document.getElementById('email_list_successfully_deleted').value); 
     367                                alert('Lista de email deletada com êxito!!'); 
    364368                         
    365369                        location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    366370                        return; 
    367371                } 
    368                 cExecute('$this.maillist.delete&uidnumber='+uidnumber, handler_delete_maillist);  
     372                cExecute ('$this.maillist.delete&uidnumber='+uidnumber, handler_delete_maillist); 
    369373        } 
    370374} 
     
    414418        return ufn.substring(0,(ufn.length-1)); 
    415419} 
    416  
    417 function dfg(){ 
    418         alert('aaa'); 
    419 } 
Note: See TracChangeset for help on using the changeset viewer.