Orbit/app/assets/javascripts/lib/datetimepicker/date.time.picker.js

17 lines
465 B
JavaScript
Raw Normal View History

2013-04-11 19:09:40 +00:00
!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();
});