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/`
|
||||
};
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"is_standard": 1,
|
||||
"login_required": 1,
|
||||
"max_attachment_size": 0,
|
||||
"modified": "2022-03-09 09:55:58.406164",
|
||||
"modified": "2022-03-14 18:49:33.526455",
|
||||
"modified_by": "Administrator",
|
||||
"module": "LMS",
|
||||
"name": "lesson",
|
||||
@@ -38,7 +38,7 @@
|
||||
"title": "Lesson",
|
||||
"web_form_fields": [
|
||||
{
|
||||
"allow_read_on_all_link_options": 1,
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "chapter",
|
||||
"fieldtype": "Link",
|
||||
"hidden": 0,
|
||||
@@ -78,7 +78,7 @@
|
||||
{
|
||||
"allow_read_on_all_link_options": 0,
|
||||
"fieldname": "body",
|
||||
"fieldtype": "Data",
|
||||
"fieldtype": "Text",
|
||||
"hidden": 0,
|
||||
"label": "Body",
|
||||
"max_length": 0,
|
||||
|
||||
Reference in New Issue
Block a user