Changeset 2869


Ignore:
Timestamp:
05/27/10 10:11:13 (14 years ago)
Author:
fpcorrea
Message:

Ticket #1088 - Resolvendo problema de casting no campo Tamanho maximo de anexo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/templates/default/config.tpl

    r2866 r2869  
    33function valida(pForm) 
    44{ 
    5         if (document.getElementsByName('newsettings[expressoMail_Max_attachment_size]').item(0).value > pForm.php_upload_limit.value) 
     5        if ((!document.getElementsByName('newsettings[expressoMail_Max_attachment_size]').item(0).value) || (!pForm.php_upload_limit.value)) 
     6                return ExpressoLivre.form(pForm); 
     7 
     8        if (parseInt(document.getElementsByName('newsettings[expressoMail_Max_attachment_size]').item(0).value) > parseInt(pForm.php_upload_limit.value)) 
    69        { 
    710                alert(pForm.valida_alert.value); 
Note: See TracChangeset for help on using the changeset viewer.