dashboard and patch for lesson
This commit is contained in:
@@ -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/`
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user