Don't ignore null datetimes on subsection settings

Clicking "Sync to <course>" should send an AJAX request with the datetimes
set to null, so that the server resets them.
This commit is contained in:
David Baumgold
2013-08-07 09:45:44 -04:00
committed by Feanil Patel
parent ae019ef8c9
commit ee3ce7b6c2

View File

@@ -313,9 +313,9 @@ function saveSubsection() {
document.getElementById(name+"_date"),
document.getElementById(name+"_time")
);
if (datetime) {
metadata[name] = datetime;
}
// if datetime is null, we want to set that in metadata anyway;
// its an indication to the server to clear the datetime in the DB
metadata[name] = datetime;
});
$.ajax({