Changeset 2400 for trunk/expressoMail1_2/js/main.js
- Timestamp:
- 04/01/10 14:07:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r2328 r2400 1662 1662 stringEmail += Element("cco_"+ID).value =='' ? "":", "+Element("cco_"+ID).value; 1663 1663 stringEmail += Element("cc_"+ID).value =='' ? "":", "+Element("cc_"+ID).value; 1664 var invalidEmail = validateEmail(stringEmail);1664 var invalidEmail = searchEmail(stringEmail); 1665 1665 if(Element("to_"+ID).value=="" && Element("cco_"+ID).value=="" && Element("cc_"+ID).value=="") { 1666 1666 write_msg(get_lang("message without receiver.")); … … 2495 2495 } 2496 2496 2497 function validateEmail(emailString){2497 function searchEmail(emailString){ 2498 2498 var arrayInvalidEmails = new Array(); 2499 2499 arrayInvalidEmails[1] = ''; … … 2501 2501 var arrayEmailsFull = new Array(); 2502 2502 arrayEmailsFull = emailString.split(','); 2503 var er_Email = new RegExp("<(.*?)>"); 2503 var er_Email = new RegExp("<(.*?)>"); 2504 // TODO Use validateEmail of common functions 2504 2505 var er_ValidaEmail = new RegExp("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$"); 2505 2506
Note: See TracChangeset
for help on using the changeset viewer.