mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-22 11:15:29 +01:00
41 lines
1.0 KiB
JavaScript
Executable File
41 lines
1.0 KiB
JavaScript
Executable File
(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,
|
|
// language: 'en' For English Language
|
|
});
|
|
}
|
|
if ($(".datepicker-autoclose").length) {
|
|
$('.datepicker-autoclose').datepicker({
|
|
autoclose: true
|
|
});
|
|
}
|
|
if ($('input[name="date-range"]').length) {
|
|
$('input[name="date-range"]').daterangepicker();
|
|
}
|
|
if ($('input[name="date-time-range"]').length) {
|
|
$('input[name="date-time-range"]').daterangepicker({
|
|
timePicker: true,
|
|
timePickerIncrement: 30,
|
|
locale: {
|
|
format: 'MM/DD/YYYY h:mm A'
|
|
}
|
|
});
|
|
}
|
|
})(jQuery); |