fix: web form issues

This commit is contained in:
pateljannat
2021-08-24 20:58:12 +05:30
parent 2c2ad78eb7
commit 9d530e35fb
5 changed files with 39 additions and 27 deletions

View File

@@ -1,7 +1,12 @@
frappe.ready(function () {
frappe.web_form.after_save = () => {
setTimeout(function () {
window.location.href = '/about';
}, 2000);
}
})
frappe.web_form.after_load = () => {
frappe.web_form.set_value("user", frappe.session.user);
}
frappe.web_form.after_save = () => {
setTimeout(function () {
window.location.href = '/about';
}, 2000);
}
})