developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 12 years ago
Closed 12 years ago
#857 closed bug (fixed)
Bug jForms vérification datetime avec IE
Reported by: | Nigoki | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Jelix 1.1.2 |
Component: | jelix-www | Version: | 1.1 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | no | |
Hosting Provider: | Php version: | 5.2.6 |
Description (last modified by laurentj)
Un bug survient avec IE sur la validation d'un formulaire contenant un champ de time <datetime>
Le message : Le champ "nom_du_champ" est invalide apparait et rend la validation du formulaire impossible.
Le problème se situe dans le fichier js/jforms_jquery.js à la ligne 384.
if(t[7] != null) //sous IE t[7] == NaN et donc passe ce test ts = parseInt(t[7],10); //ici ts prend donc la valeur NaN et on obtient donc une date invalide
J'ai corriger le problème comme ceci :
if(t[7] != null) { ts = parseInt(t[7],10); if(isNaN(ts)) ts = 0; }
Change History (3)
comment:1 Changed 12 years ago by Nigoki
comment:2 Changed 12 years ago by laurentj
- Description modified (diff)
- Milestone set to Jelix 1.1.2
comment:3 Changed 12 years ago by laurentj
- Php version changed from 5.6.2 to 5.2.6
- Resolution set to fixed
- Status changed from new to closed
En fait, t[7] ne vaut pas NaN mais "" (IE6).
Corrigé r1371
Note: See
TracTickets for help on using
tickets.
Je me suis un peu loupé sur l'indentation, désolé.