mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 11:56:25 +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
|
|
|
|
});
|
|
});
|
|
}); |