Ignore:
Timestamp:
01/05/10 14:21:53 (14 years ago)
Author:
valmir.sena
Message:

Ticket #849 - Criacao de caixas compartilhadas pelo administrador, commit final2

File:
1 edited

Legend:

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

    r414 r1916  
    1414 
    1515var global_langs = new Array(); 
     16var emailSugestion = 1; 
    1617 
    1718function handler_load_lang(data) 
     
    3031        else 
    3132                return lang; 
     33} 
     34 
     35function emailSugestion_expressoadmin2(email) {          
     36                if ( email.value.indexOf('@', 0) < 0 )  emailSugestion = 1; 
     37                if ( (email.value.indexOf('@', 0) == (email.value.length - 1)) && emailSugestion == 1 && email.value.length > 0 ) { 
     38                        var tmp; 
     39                        var context = ""; 
     40 
     41                        organization_context = Element('ea_combo_org').value; 
     42                        // Transformar os DN em User Friendly Naming format 
     43                        organization_name = organization_context.split(","); 
     44                        for (i in organization_name) { 
     45                                tmp = organization_name[i].split("="); 
     46                                context += tmp[1]; 
     47                                if( i < (organization_name.length - 1) ) context +=  '.'; 
     48                        }                         
     49                        email.value = email.value + context; 
     50                        emailSugestion = 0; 
     51                }                
    3252} 
    3353 
Note: See TracChangeset for help on using the changeset viewer.