dashboard and patch for lesson

This commit is contained in:
Jannat Patel
2022-03-14 19:07:02 +05:30
34 changed files with 389 additions and 218 deletions

View File

@@ -1,17 +1,5 @@
frappe.ready(function() {
frappe.web_form.after_save = () => {
setTimeout(() => {
frappe.call({
method: "school.lms.doctype.course_lesson.course_lesson.get_lesson_info",
args: {
"lesson_name": frappe.web_form.doc.name
},
callback: (data) => {
window.location.href = data.message;
}
});
});
frappe.web_form.after_save = () => {
window.location.href = `/courses/`
};
});