15 lines
467 B
JavaScript
15 lines
467 B
JavaScript
|
jQuery(document).ready(function($){
|
||
|
var startDateTextBox = jQuery('.event_start');
|
||
|
var endDateTextBox = jQuery('.event_end');
|
||
|
jQuery.timepicker.datetimeRange(
|
||
|
startDateTextBox,
|
||
|
endDateTextBox,
|
||
|
{
|
||
|
minInterval: (1000*60*60), // 1hr
|
||
|
dateFormat: 'yy-mm-dd',
|
||
|
timeFormat: 'HH:mm',
|
||
|
start: {}, // start picker options
|
||
|
end: {} // end picker options
|
||
|
}
|
||
|
);
|
||
|
});
|