37 lines
944 B
JavaScript
37 lines
944 B
JavaScript
|
(function($) {
|
||
|
'use strict';
|
||
|
if ($("#timepicker-example").length) {
|
||
|
$('#timepicker-example').datetimepicker({
|
||
|
format: 'LT'
|
||
|
});
|
||
|
}
|
||
|
if ($(".color-picker").length) {
|
||
|
$('.color-picker').asColorPicker();
|
||
|
}
|
||
|
if ($("#datepicker-popup").length) {
|
||
|
$('#datepicker-popup').datepicker({
|
||
|
enableOnReadonly: true,
|
||
|
todayHighlight: true,
|
||
|
});
|
||
|
}
|
||
|
if ($("#inline-datepicker").length) {
|
||
|
$('#inline-datepicker').datepicker({
|
||
|
enableOnReadonly: true,
|
||
|
todayHighlight: true,
|
||
|
});
|
||
|
}
|
||
|
if ($(".datepicker-autoclose").length) {
|
||
|
$('.datepicker-autoclose').datepicker({
|
||
|
autoclose: true
|
||
|
});
|
||
|
}
|
||
|
if ($('input[name="date-range"]').length) {
|
||
|
$('input[name="date-range"]').daterangepicker();
|
||
|
}
|
||
|
if($('.input-daterange').length) {
|
||
|
$('.input-daterange input').each(function() {
|
||
|
$(this).datepicker('clearDates');
|
||
|
});
|
||
|
$('.input-daterange').datepicker({});
|
||
|
}
|
||
|
})(jQuery);
|