fix: ui, preview, progress, batches
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
frappe.ready(() => {
|
||||
if (!$(".title").hasClass("is_mentor")) {
|
||||
if ($(".title").attr("data-batch") && !$(".title").hasClass("is_mentor")) {
|
||||
frappe.call({
|
||||
method: "community.lms.doctype.lesson.lesson.save_progress",
|
||||
args: {
|
||||
@@ -8,4 +8,10 @@ frappe.ready(() => {
|
||||
}
|
||||
})
|
||||
}
|
||||
if ($(".title").attr("data-batch")) {
|
||||
frappe.call("community.lms.api.save_current_lesson", {
|
||||
"batch_name": $(".title").attr("data-batch"),
|
||||
"lesson_name": $(".title").attr("data-name")
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user