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 80: | Line 80: | ||
function fixDateRanges(){ | function fixDateRanges(){ | ||
$.each(timeConstraints, function(key, value){ | $.each(timeConstraints, function(key, value){ | ||
var updatedAppointment = new Date($("#visit-"+key).val()); | var updatedAppointment = new Date($("#visit-"+(key-1)).val()); | ||
$("#visit-"+key).css("border", "0px solid white"); | $("#visit-"+key).css("border", "0px solid white"); | ||
if(key > 1 && key <= 4){ | if(key > 1 && key <= 4){ |