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:
committed by
Feanil Patel
parent
ae019ef8c9
commit
ee3ce7b6c2
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user