67 lines
1.4 KiB
JavaScript
67 lines
1.4 KiB
JavaScript
|
$(document).ready(function()
|
||
|
{
|
||
|
$('#date').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
time: false,
|
||
|
clearButton: true
|
||
|
});
|
||
|
$('#date1').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
time: false,
|
||
|
clearButton: true
|
||
|
});
|
||
|
$('#dateOfBirth').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
time: false,
|
||
|
clearButton: true
|
||
|
});
|
||
|
|
||
|
$('#therapyDate').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
time: false,
|
||
|
clearButton: true
|
||
|
});
|
||
|
|
||
|
$('#time').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
date: false,
|
||
|
shortTime: false,
|
||
|
format: 'HH:mm'
|
||
|
});
|
||
|
$('#time2').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
date: false,
|
||
|
shortTime: false,
|
||
|
format: 'HH:mm'
|
||
|
});
|
||
|
|
||
|
$('#date-format').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
format: 'dddd DD MMMM YYYY - HH:mm'
|
||
|
});
|
||
|
$('#date-fr').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
format: 'DD/MM/YYYY HH:mm',
|
||
|
lang: 'fr',
|
||
|
weekStart: 1,
|
||
|
cancelText : 'ANNULER',
|
||
|
nowButton : true,
|
||
|
switchOnClick : true
|
||
|
});
|
||
|
|
||
|
$('#date-end').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
weekStart: 0, format: 'DD/MM/YYYY HH:mm'
|
||
|
});
|
||
|
$('#date-start').bootstrapMaterialDatePicker
|
||
|
({
|
||
|
weekStart: 0, format: 'DD/MM/YYYY HH:mm', shortTime : true
|
||
|
}).on('change', function(e, date)
|
||
|
{
|
||
|
$('#date-end').bootstrapMaterialDatePicker('setMinDate', date);
|
||
|
});
|
||
|
|
||
|
$('#min-date').bootstrapMaterialDatePicker({ format : 'DD/MM/YYYY HH:mm', minDate : new Date() });
|
||
|
|
||
|
|
||
|
});
|