feat: lesson progress

This commit is contained in:
pateljannat
2021-06-02 13:52:50 +05:30
parent 9c65ff8ae6
commit 5fd1143f76
16 changed files with 210 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
frappe.ready(() => {
console.log($(".title").hasClass("is_mentor"))
if (!$(".title").hasClass("is_mentor")) {
frappe.call({
method: "community.lms.doctype.lesson.lesson.save_progress",
args: {
lesson: $(".title").attr("data-name")
}
})
}
})