This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/assets/javascripts/lib/datetimepicker/date.time.picker.js

17 lines
465 B
JavaScript

!function ($) {
$.fn.datetimepick = function() {
var $this = this,
$format = $this.attr('data-date-format'),
$language = $this.attr('data-language'),
$pickTime = ("ture" === $this.attr('data-picktime'));
$this.datetimepicker({
format: $format,
pickTime: $pickTime,
language: $language,
});
}
}(window.jQuery);
$(function(){
$('.datetimepick').datetimepick();
});