Theme: Make DateTimePicker on CSS .datepicker class available by default.

This commit is contained in:
reliberate 2016-05-17 13:44:42 -06:00
parent 0ad7a4d82b
commit 36bb44c932
1 changed files with 7 additions and 1 deletions

View File

@ -157,7 +157,7 @@
}); });
//apply the auto-size jquery script to all text inputs //apply the auto-size jquery script to all text inputs
$("input[type=text].txt,input[type=number].txt,input[type=password].txt,input[type=text].formfld,input[type=number].formfld,input[type=password].formfld").not('.datetimepicker').autosizeInput(); $("input[type=text].txt,input[type=number].txt,input[type=password].txt,input[type=text].formfld,input[type=number].formfld,input[type=password].formfld").not('.datetimepicker,.datepicker').autosizeInput();
//apply bootstrap-datetime plugin //apply bootstrap-datetime plugin
$(function() { $(function() {
@ -167,6 +167,12 @@
showClear: true, showClear: true,
showClose: true, showClose: true,
}); });
$('.datepicker').datetimepicker({
format: 'YYYY-MM-DD',
showTodayButton: true,
showClear: true,
showClose: true,
});
}); });
//apply bootstrap-colorpicker plugin //apply bootstrap-colorpicker plugin