Gazelle/static/functions/datetime_picker.js

24 lines
539 B
JavaScript
Raw Normal View History

2013-12-15 08:00:49 +00:00
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,
2013-12-16 08:00:48 +00:00
validateOnBlur: false
2013-12-15 08:00:49 +00:00
});
$(".datetime_picker").datetimepicker({
format: dateFormat,
2013-12-16 08:00:48 +00:00
step: timeStep,
validateOnBlur: false
2013-12-15 08:00:49 +00:00
});
$(".time_picker").datetimepicker({
format: timeFormat,
datepicker: false,
2013-12-16 08:00:48 +00:00
step: timeStep,
validateOnBlur: false
2013-12-15 08:00:49 +00:00
});
});
});