Changeset 3190


Ignore:
Timestamp:
09/01/10 10:39:52 (14 years ago)
Author:
adeildosantos
Message:

Ticket #1177 - Corrigido o formato da data adequando o tam da parte correspondente ao ano

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/workflow/js/jscalendar/calendar-input.js

    r795 r3190  
    55        var valorLimpo = ''; 
    66        var len = 0; 
    7         var lenLimpo = 0; 
    87        var strCheck = '0123456789'; 
    98 
     
    2019        if (strCheck.indexOf(key) == -1) 
    2120                return false;  // não é um caractere válido 
    22          
     21 
    2322        valor = campo.value; 
    2423        len = valor.length; 
     
    2726                if (strCheck.indexOf(valor.charAt(i)) != -1) 
    2827                        valorLimpo += valor.charAt(i); 
    29          
     28 
    3029        valorLimpo += key; 
    31         lenLimpo = valorLimpo.length; 
    3230        var valorNovo = ''; 
    33         for (var i = 0; i < lenLimpo; i++) 
    34         { 
     31 
     32        for (var i = 0; i < 8; i++){ 
     33 
    3534                valorNovo += valorLimpo.charAt(i); 
    3635                if ((i == 1) || (i == 3)) 
Note: See TracChangeset for help on using the changeset viewer.