Commit ee3ce7b6 by David Baumgold Committed by Feanil Patel

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.
parent ae019ef8
......@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment