changing enddate at all times now, problem with setting time otherwise.

This commit is contained in:
Naomi Aro 2013-08-22 22:21:08 -04:00
parent 3e8f49c00d
commit fb37f371e2
1 changed files with 3 additions and 7 deletions
airtime_mvc/public/js/airtime/playouthistory

View File

@ -291,8 +291,7 @@ var AIRTIME = (function(AIRTIME) {
title: $.i18n._("Edit History Record"),
modal: false,
open: function( event, ui ) {
//icon-time
var $startPicker = $hisDialogEl.find('#his_item_starts_datetimepicker');
$startPicker.datetimepicker();
@ -302,11 +301,8 @@ var AIRTIME = (function(AIRTIME) {
});
$startPicker.on('changeDate', function(e) {
var end = $endPicker.find("input").val();
if (end === "") {
$endPicker.data('datetimepicker').setLocalDate(e.localDate);
}
$endPicker.data('datetimepicker').setLocalDate(e.localDate);
});
},
close: function() {