fix pdam redirect back and advertisement partial update redirect
This commit is contained in:
@@ -6,6 +6,7 @@ class CreateCustomer {
|
||||
initCreateCustomer() {
|
||||
const toastNotification = document.getElementById("toastNotification");
|
||||
const toast = new bootstrap.Toast(toastNotification);
|
||||
let menuId = document.getElementById("menuId").value;
|
||||
document
|
||||
.getElementById("btnCreateCustomer")
|
||||
.addEventListener("click", async function () {
|
||||
@@ -41,7 +42,7 @@ class CreateCustomer {
|
||||
result.message;
|
||||
toast.show();
|
||||
setTimeout(() => {
|
||||
window.location.href = "/data/customers";
|
||||
window.location.href = `/data/customers?menu_id=${menuId}`;
|
||||
}, 2000);
|
||||
} else {
|
||||
let error = await response.json();
|
||||
|
||||
Reference in New Issue
Block a user