fix redirect back reklame and tourisms

This commit is contained in:
arifal
2025-03-13 15:24:59 +07:00
parent 7787db02a3
commit 0116147e06
14 changed files with 48 additions and 47 deletions

View File

@@ -5,6 +5,7 @@ document.addEventListener("DOMContentLoaded", function () {
const modalButton = document.querySelector(".btn-modal");
const form = document.querySelector("form#create-update-form");
var authLogo = document.querySelector(".auth-logo");
let menuId = document.getElementById("menuId").value;
if (!saveButton || !form) return;
@@ -73,7 +74,7 @@ document.addEventListener("DOMContentLoaded", function () {
}, 3000);
setTimeout(() => {
window.location.href = "/data/web-tourisms";
window.location.href = `/data/web-tourisms?menu_id=${menuId}`;
}, 3000);
} else {
if (authLogo) {