Changeset 65889 in spip-zone


Ignore:
Timestamp:
Sep 15, 2012, 12:28:31 PM (7 years ago)
Author:
tofulm@…
Message:

insertion du script dans le insert_head (merci maîeul)
deux possibilités :
-> class=datetimepicker => gestion de la date et des heures
-> class=timepicker => gestion uniquement des heures
Ce script ajoute un bouton + et - très pratique.

Location:
_plugins_/jquery_timepicker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/jquery_timepicker/paquet.xml

    r65845 r65889  
    1111<auteur>tofulm</auteur>
    1212    <pipeline nom="insert_head_css" inclure="timepicker_pipelines.php" />
     13    <pipeline nom="insert_head" inclure="timepicker_pipelines.php" />
    1314    <pipeline nom="jquery_plugins" inclure="timepicker_pipelines.php" />
    1415    <pipeline nom="jqueryui_plugins" inclure="timepicker_pipelines.php" />
  • _plugins_/jquery_timepicker/timepicker_pipelines.php

    r65845 r65889  
    1111}
    1212
     13/**
     14 * insertion du js pour timepicker
     15 **/
     16function timepicker_insert_head($flux){
     17    $flux .= <<<EOF
     18    <script type="text/javascript">
     19    $(document).ready(function(){
     20        jQuery(".datetimepicker").datetimepicker({
     21            addSliderAccess: true,
     22            sliderAccessArgs: { touchonly: false }
     23        });
     24        jQuery(".timepicker").timepicker({
     25            addSliderAccess: true,
     26            sliderAccessArgs: { touchonly: false }
     27        });
     28    });
     29    </script>
     30EOF;
     31    return $flux;
     32}
    1333/**
    1434 * insertion des scripts du timepickers ui
Note: See TracChangeset for help on using the changeset viewer.