Gazelle/static/functions/datetime_picker.js
2013-12-16 08:00:48 +00:00

24 lines
539 B
JavaScript

var dateFormat = 'Y-m-d';
var timeFormat = 'H:i';
var timeStep = 15;
$(document).ready(function() {
$.getScript("static/functions/jquery.datetimepicker.js", function() {
$(".date_picker").datetimepicker({
timepicker: false,
format: dateFormat,
validateOnBlur: false
});
$(".datetime_picker").datetimepicker({
format: dateFormat,
step: timeStep,
validateOnBlur: false
});
$(".time_picker").datetimepicker({
format: timeFormat,
datepicker: false,
step: timeStep,
validateOnBlur: false
});
});
});