From 36bb44c932836e8becf2ad8431ee9af42596086c Mon Sep 17 00:00:00 2001 From: reliberate Date: Tue, 17 May 2016 13:44:42 -0600 Subject: [PATCH] Theme: Make DateTimePicker on CSS .datepicker class available by default. --- themes/default/template.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/default/template.php b/themes/default/template.php index 22f851bc3f..37faaf7b72 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -157,7 +157,7 @@ }); //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 $(function() { @@ -167,6 +167,12 @@ showClear: true, showClose: true, }); + $('.datepicker').datetimepicker({ + format: 'YYYY-MM-DD', + showTodayButton: true, + showClear: true, + showClose: true, + }); }); //apply bootstrap-colorpicker plugin