Changeset 1916 for trunk/expressoAdmin1_2/js/jscode/expressoadmin.js
- Timestamp:
- 01/05/10 14:21:53 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/js/jscode/expressoadmin.js
r414 r1916 14 14 15 15 var global_langs = new Array(); 16 var emailSugestion = 1; 16 17 17 18 function handler_load_lang(data) … … 30 31 else 31 32 return lang; 33 } 34 35 function 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 } 32 52 } 33 53
Note: See TracChangeset
for help on using the changeset viewer.