feat: lesson progress
This commit is contained in:
11
community/www/batch/learn.js
Normal file
11
community/www/batch/learn.js
Normal 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")
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user