fix: formatting

This commit is contained in:
Jannat Patel
2022-11-21 12:27:52 +05:30
parent ed2fababff
commit cfcc1b3162
3 changed files with 12 additions and 16 deletions

View File

@@ -1,5 +1,4 @@
frappe.ready(() => {
this.result;
let self = this;
@@ -14,10 +13,8 @@ frappe.ready(() => {
self.result = $(this).val();
});
});
});
const set_result = () => {
let self = this;
let result = $("#result").data("type");
@@ -31,20 +28,19 @@ const set_result = () => {
}
};
const save_assignment = (e) => {
frappe.call({
method: "lms.lms.doctype.lesson_assignment.lesson_assignment.grade_assignment",
args: {
"name": $(e.currentTarget).data("assignment"),
"result": self.result,
"comments": $("#comments").val(),
name: $(e.currentTarget).data("assignment"),
result: self.result,
comments: $("#comments").val(),
},
callback: (data) => {
frappe.show_alert({
message: __("Saved"),
indicator: "green",
});
}
})
}
},
});
};