You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
683 B
25 lines
683 B
"use strict";
|
|
(function($) {
|
|
"use strict";
|
|
//Minimum and Maxium Date
|
|
$('#minMaxExample').datepicker({
|
|
language: 'en',
|
|
minDate: new Date() // Now can select only dates, which goes after today
|
|
})
|
|
|
|
//Disable Days of week
|
|
var disabledDays = [0, 6];
|
|
|
|
$('#disabled-days').datepicker({
|
|
language: 'en',
|
|
onRenderCell: function (date, cellType) {
|
|
if (cellType == 'day') {
|
|
var day = date.getDay(),
|
|
isDisabled = disabledDays.indexOf(day) != -1;
|
|
return {
|
|
disabled: isDisabled
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})(jQuery); |