Plugin Directory

Changeset 801563


Ignore:
Timestamp:
11/09/2013 01:58:20 PM (12 years ago)
Author:
shockware
Message:

Add slider access to timepicker

Location:
contact-form-7-datepicker/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • contact-form-7-datepicker/trunk/contact-form-7-datepicker.php

    r801560 r801563  
    9090        wp_enqueue_script('jquery-ui-slider');
    9191
     92        wp_enqueue_script(
     93            'jquery-ui-slider-access',
     94            plugins_url('js/jquery-ui-sliderAccess.js', __FILE__),
     95            array('jquery-ui-slider', 'jquery-ui-button'),
     96            '',
     97            true
     98        );
     99
    92100        wp_register_script(
    93101            'jquery-ui-effect-core',
  • contact-form-7-datepicker/trunk/datetimepicker.php

    r755191 r801563  
    2222        'showTimezone' => '',
    2323        'controlType' => 'slider',
     24        'addSliderAccess' => true,
     25        'sliderAccessArgs' => array(
     26            'touchonly' => true
     27        ),
    2428        'hourMin' => '',
    2529        'hourMax' => '',
     
    123127        $this->options['firstDay'] = get_option('start_of_week');
    124128
    125         if(isset($this->options['noWeekends'])){
     129        if (isset($this->options['noWeekends'])) {
    126130            $this->noWeekends = $this->options['noWeekends'];
    127131            unset($this->options['noWeekends']);
    128132        }
    129133
    130         if(isset($this->options['minDate'])){
     134        if (isset($this->options['minDate'])) {
    131135            $this->minDate = $this->options['minDate'];
    132136            unset($this->options['minDate']);
    133137        }
    134138
    135         if(isset($this->options['maxDate'])){
     139        if (isset($this->options['maxDate'])) {
    136140            $this->maxDate = $this->options['maxDate'];
    137141            unset($this->options['maxDate']);
Note: See TracChangeset for help on using the changeset viewer.