[spip ↪ dateur] 5 commits

Cerdic <[email protected]>
Newsgroups gmane.comp.web.spip.cvs
Message-ID <ij2FL0CqKHBSlPe54ZEncxULlDhBitF6JLL3U863tl0@localhost.localdomain>
spip/spip | 5 commits
-
Par Cerdic, le 19 mars 2021 à 17h34min : 

Refactoring du JS et prise en charge d'attributs data-range-before et data-range-after permettant de designer un input date lie dont la date doit etre respectivement avant et apres celle de l'input courant
Ex :
```
<input type='text' class='text date' name='date_debut' id='date_debut' size='10' maxlength='10' value="[(#ENV{date_debut})]" data-range-after="#date_fin"/>
<input type='text' class='text date' name='date_fin' id='date_fin' size='10' maxlength='10' value="[(#ENV{date_fin})]"  data-range-before="#date_debut"/>
```


*Modifié*
    prive/formulaires/dateur/inc-dateur.html

Détails : https://git.spip.net/spip/spip/commit/17f8370b42ebc0e8c50636f460ea566475528f93

==============================
Par Cerdic, le 16 avril 2021 à 14h23min : 

Utiliser les variables CSS pour le picker de date


*Modifié*
    prive/formulaires/dateur/bootstrap-datepicker.standalone.css

Détails : https://git.spip.net/spip/spip/commit/174b04353a0ab64042c9a7e107c1b46c09d639d4

==============================
Par Cerdic, le 16 avril 2021 à 14h38min : 

Par defaut le picker ne s'affiche pas sur le focus mais au click dans le champ. Cela est modifiable en ajoutant un data-showonfocus=true sur le input.
Du coup on peut enlever le data-orientation que l'on avait mis sur le formulaire dater


*Modifié*
    prive/formulaires/dater.html
    prive/formulaires/dateur/inc-dateur.html

Détails : https://git.spip.net/spip/spip/commit/a343089426dc7f1405c7d550dba5d94bbd56a2cf

==============================
Par Cerdic, le 16 avril 2021 à 14h43min : 

Si le datepicker de jqueryui est chargé parce qu'on a gardé jquery ui, on l'utilise (ca permet aux sites qui s'appuient explicitement sur jquery ui de continuer a l'utiliser


*Modifié*
    prive/formulaires/dateur/jquery.dateur.js.html

Détails : https://git.spip.net/spip/spip/commit/37466deb37ac8b1adfab8d8a2dd17a13a6e331d6

==============================
Par Cerdic, le 16 avril 2021 à 14h58min : 

Avoir le meme comportement d'ouverture au clic uniquement avec jquery ui et avec bs datepicker


*Modifié*
    prive/formulaires/dateur/inc-dateur.html

Détails : https://git.spip.net/spip/spip/commit/311617689542054b37453a266444c54741fe9167
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.