Widget:VisitSchedulerRedux: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 48: | Line 48: | ||
$.each(timeConstraints, function(key, value){ | $.each(timeConstraints, function(key, value){ | ||
if(key > modId && key <= 5){ | if(key > modId && key <= 5){ | ||
updatedAppointment = new Date(updatedAppointment.getFullYear(), updatedAppointment.getMonth(), updatedAppointment.getDate()+value[0]); | updatedAppointment = new Date(updatedAppointment.getFullYear(), updatedAppointment.getMonth(), updatedAppointment.getDate()+value[0]).val(); | ||
$("#visit-"+key).val(updatedAppointment); | $("#visit-"+key).val(updatedAppointment); | ||
$("#visit-"+key).datepicker('destroy'); | $("#visit-"+key).datepicker('destroy'); |