var KTBootstrapDatepicker = function () {
var arrows;
if (KTUtil.isRTL()) {
arrows = {
leftArrow: '<i class="la la-angle-right"></i>',
rightArrow: '<i class="la la-angle-left"></i>'
}
} else {
arrows = {
leftArrow: '<i class="la la-angle-left"></i>',
rightArrow: '<i class="la la-angle-right"></i>'
}
}
var demos = function () {
$('#kt_datepicker_1').datepicker({
rtl: KTUtil.isRTL(),
todayHighlight: true,
orientation: "bottom left",
templates: arrows
});
$('#kt_datepicker_1_modal').datepicker({
rtl: KTUtil.isRTL(),
todayHighlight: true,
orientation: "bottom left",
templates: arrows
});
$('#kt_datepicker_2').datepicker({
rtl: KTUtil.isRTL(),
todayHighlight: true,
orientation: "bottom left",
templates: arrows
});
$('#kt_datepicker_2_modal').datepicker({
rtl: KTUtil.isRTL(),
todayHighlight: true,
orientation: "bottom left",
templates: arrows
});
$('#kt_datepicker_3, #kt_datepicker_3_validate').datepicker({
rtl: KTUtil.isRTL(),
todayBtn: "linked",
clearBtn: true,
todayHighlight: true,
templates: arrows
});
$('#kt_datepicker_3_modal').datepicker({
rtl: KTUtil.isRTL(),
todayBtn: "linked",
clearBtn: true,
todayHighlight: true,
templates: arrows
});
$('#kt_datepicker_4_1').datepicker({
rtl: KTUtil.isRTL(),
orientation: "top left",
todayHighlight: true,
templates: arrows
});
$('#kt_datepicker_4_2').datepicker({
rtl: KTUtil.isRTL(),
orientation: "top right",
todayHighlight: true,
templates: arrows
});
$('#kt_datepicker_4_3').datepicker({
rtl: KTUtil.isRTL(),
orientation: "bottom left",
todayHighlight: true,
templates: arrows
});
$('#kt_datepicker_4_4').datepicker({
rtl: KTUtil.isRTL(),
orientation: "bottom right",
todayHighlight: true,
templates: arrows
});
$('#kt_datepicker_5').datepicker({
rtl: KTUtil.isRTL(),
todayHighlight: true,
templates: arrows
});
$('#kt_datepicker_6').datepicker({
rtl: KTUtil.isRTL(),
todayHighlight: true,
templates: arrows
});
}
return {
init: function() {
demos();
}
};
}();
jQuery(document).ready(function() {
KTBootstrapDatepicker.init();
});