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 139: | Line 139: | ||
$("#save").click(function(){ | $("#save").click(function(){ | ||
var cal = ics(); | var cal = ics(); | ||
var appointmentDateAndTime = new Date(); | |||
$.each(timeConstraints, function(key, value){ | $.each(timeConstraints, function(key, value){ | ||
if(!$("#visit-"+key).hasClass("invalid")){ | if(!$("#visit-"+key).hasClass("invalid")){ | ||
appointmentDateAndTime = new Date($("#visit-"+key).val()); | |||
cal.addEvent(value[5]+" for "+$("#patientID").val(),value[6],"Office of "+$("#assigned").val(),$("#visit-"+key).val(),$("#visit-"+key).val()); | |||
cal.addEvent(value[5]+" for "+$("#patientID").val(),value[6],"Office of "+$("#assigned").val(), | |||
} | } | ||
}); | }); | ||
cal.download(); | cal.download(); | ||
}); | |||
}); | }); | ||
}; | }; |