timeouts
This commit is contained in:
@@ -65,6 +65,9 @@ document.getElementById("confirm-add").addEventListener("click", () => {
|
||||
console.error("Error:", error);
|
||||
document.getElementById("contact-form").innerHTML = `<p class="page-paragraph-error">Prišlo je do napake pri dodajanju vnosa. Prosimo, poskusite znova pozneje.</p>`;
|
||||
});
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
}, 3000);
|
||||
});
|
||||
|
||||
document.getElementById("cancel-add").addEventListener("click", () => {
|
||||
|
||||
Reference in New Issue
Block a user