fix: better msg on web form save

This commit is contained in:
Jannat Patel
2022-03-19 09:31:39 +05:30
15 changed files with 341 additions and 279 deletions

View File

@@ -1,5 +1,8 @@
frappe.ready(function() {
frappe.web_form.after_save = () => {
window.location.href = `/courses/${frappe.web_form.doc.course}`;
frappe.web_form.after_save = () => {
frappe.msgprint(__("Chapter has been saved successfully. Go back to the course and add this chapter to the chapters table."))
setTimeout(() => {
window.location.href = `/courses/${frappe.web_form.doc.course}`;
}, 3000);
}
});