Fixed bad function calling
This commit is contained in:
parent
57aeb4d34b
commit
b1381234e2
@ -251,9 +251,9 @@ Template.main.events({
|
||||
if(e === "overlay") {
|
||||
closeDivFade(document.getElementsByClassName("overlay")[0]);
|
||||
if(!Session.get("newWork")) {
|
||||
Session.set("serverData",getHomeworkFormData())
|
||||
sendData("editWork");
|
||||
} else {
|
||||
if(getHomeworkFormData() === null) return;
|
||||
Session.set("serverData",Session.get("currentWork"));
|
||||
sendData("editWork");
|
||||
}
|
||||
Session.set("newWork",null);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user