sibanu_web/public/assets/js/components/vendor/bootstrap-datepicker.js
2022-08-20 13:21:23 +07:00

35 lines
383 B
JavaScript

//
// Bootstrap Datepicker
//
'use strict';
var Datepicker = (function() {
// Variables
var $datepicker = $('.datepicker');
// Methods
function init($this) {
var options = {
disableTouchKeyboard: true,
autoclose: false
};
$this.datepicker(options);
}
// Events
if ($datepicker.length) {
$datepicker.each(function() {
init($(this));
});
}
})();