Tweaks to success redirect

- 5 seconds wait before redirect
- Edited description for URL in settings
This commit is contained in:
0Pranav 2019-11-26 12:14:41 +05:30
parent 8d2b0d800c
commit fb1e87710b
2 changed files with 3 additions and 3 deletions

View File

@ -94,14 +94,14 @@
"label": "Success Settings"
},
{
"description": "Leave blank for home.\nThis is relative to site URL, for example \"/about\" will redirect to \"https://yoursitename.com/about\"",
"description": "Leave blank for home.\nThis is relative to site URL, for example \"about\" will redirect to \"https://yoursitename.com/about\"",
"fieldname": "success_redirect_url",
"fieldtype": "Data",
"label": "Success Redirect URL"
}
],
"issingle": 1,
"modified": "2019-11-20 15:17:55.617364",
"modified": "2019-11-26 12:14:17.669366",
"modified_by": "Administrator",
"module": "CRM",
"name": "Appointment Booking Settings",

View File

@ -219,7 +219,7 @@ async function submit() {
if (window.appointment_settings.success_redirect_url){
redirect_url += window.appointment_settings.success_redirect_url;
}
window.location.href = redirect_url;},2)
window.location.href = redirect_url;},5000)
},
error: (err)=>{
frappe.show_alert("Something went wrong please try again");