fix redirect back spatial plannings
This commit is contained in:
@@ -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-spatial-plannings";
|
||||
window.location.href = `/data/web-spatial-plannings?menu_id=${menuId}`;
|
||||
}, 3000);
|
||||
} else {
|
||||
if (authLogo) {
|
||||
|
||||
Reference in New Issue
Block a user