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 47: | Line 47: | ||
$(this).val(updatedAppointment); | $(this).val(updatedAppointment); | ||
$.each(timeConstraints, function(key, value){ | $.each(timeConstraints, function(key, value){ | ||
if(key > modId && key <= | if(key > modId && key <= 4){ | ||
updatedAppointment = new Date(updatedAppointment.getFullYear(), updatedAppointment.getMonth(), updatedAppointment.getDate()+value[0]); | updatedAppointment = new Date(updatedAppointment.getFullYear(), updatedAppointment.getMonth(), updatedAppointment.getDate()+value[0]); | ||
$("#visit-"+key).val(updatedAppointment.toDateString()); | $("#visit-"+key).val(updatedAppointment.toDateString()); |