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 73: | Line 73: | ||
$( "#indexEventTime" ).change(function(){validateConstraints();}); | $( "#indexEventTime" ).change(function(){validateConstraints();}); | ||
$("#visit-1").change(function(){ | $("#visit-1").change(function(){ | ||
currentAppointment = new Date($("#visit-1").val()); | |||
$("#visit-6").datepicker('destroy'); | $("#visit-6").datepicker('destroy'); | ||
$("#visit-6").datepicker({minDate: new Date(currentAppointment.getFullYear(), currentAppointment.getMonth(), currentAppointment.getDate()-value[2]), maxDate:new Date(currentAppointment.getFullYear(), currentAppointment.getMonth(), currentAppointment.getDate()+60)}); | $("#visit-6").datepicker({minDate: new Date(currentAppointment.getFullYear(), currentAppointment.getMonth(), currentAppointment.getDate()-value[2]), maxDate:new Date(currentAppointment.getFullYear(), currentAppointment.getMonth(), currentAppointment.getDate()+60)}); |