amsul / amsul/pickadate.js

Disable time in pickadate.js not work

Aperta
#1,086 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
7.6k
Fork
981
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I use this Library (https://github.com/amsul/pickadate.js) in my site, and i need to disable some time.

Its work in ( http://amsul.ca/pickadate.js/time/ ) in disable times section, i do like example in above URL,

```
var dt = new Date();
var $nowtime = dt.getHours();
var $next2time = dt.getHours() + 2;
var $time_input = $( '#rtb-time' );
if ( $time_input.length ) {
var time_input = $time_input.pickatime({
format: rtb_pickadate.time_format,
hiddenName: true,
interval: parseInt( rtb_pickadate.time_interval, 10 ),
container: 'body',
disable: [
false,
3, 5, 7,
[0,30],
[7,0],
[8,30],
[9,0]
]
});

rtb_booking_form.timepicker = time_input.pickatime( 'picker' );
}
```
I dont knew where problem !!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.