mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
24 lines
539 B
JavaScript
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
|
|
|
|
});
|
|
});
|
|
}); |