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(){
|
2013-01-09 09:08:09 +00:00
|
|
|
if ($(this).hasClass('date_picker'))
|
|
|
|
{
|
2013-01-09 10:00:38 +00:00
|
|
|
if ($(this).find('input').val() && $(this).siblings('div').css('pointer-events'))
|
2013-01-09 09:08:09 +00:00
|
|
|
{
|
2013-01-09 10:00:38 +00:00
|
|
|
$(this).siblings('div').css('pointer-events', '');
|
2013-01-09 09:08:09 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$(this).siblings('div').find('input').val(null);
|
2013-01-09 10:00:38 +00:00
|
|
|
$(this).siblings('div').css('pointer-events', 'none');
|
2013-01-09 09:08:09 +00:00
|
|
|
}
|
|
|
|
}
|
2013-01-08 21:18:16 +00:00
|
|
|
$(this).siblings('input').val($(this).find('input').val() + ' ' + $(this).siblings('div').find('input').val());
|
|
|
|
});
|
|
|
|
|
2013-01-09 09:08:09 +00:00
|
|
|
// $('.date_picker').on("changeDate",function(){
|
|
|
|
// $(this).find('input').val('');
|
|
|
|
// });
|
|
|
|
|
2013-01-08 21:18:16 +00:00
|
|
|
});
|