orbit-basic/app/assets/javascripts/datetimepicker.js

17 lines
388 B
JavaScript
Raw Normal View History

2013-01-08 21:18:16 +00:00
$(document).ready(function(){
$('.date_picker').datetimepicker({
pickTime: false
});
$('.default_picker').datetimepicker();
$('.time_picker').datetimepicker({
pickDate: false
});
$('.separated_picker div').on("changeDate",function(){
$(this).siblings('input').val($(this).find('input').val() + ' ' + $(this).siblings('div').find('input').val());
});
});