This commit is contained in:
2026-05-18 08:38:30 +02:00
parent eddba45f4e
commit 28e3053a6a
39 changed files with 55 additions and 29 deletions

View File

@@ -32,6 +32,10 @@ const form = `
<p><em>Vaš vnos bo javno vezan na vaš račun.</em></p>
</form>`;
function navigateTop(page) {
window.open(new URL(page, window.location.href).href, "_top");
}
document.getElementById("confirm-add").addEventListener("click", () => {
document.getElementById("new-entry-form-modal").style.display = "none";
@@ -66,7 +70,7 @@ document.getElementById("confirm-add").addEventListener("click", () => {
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 = "index.html";
navigateTop("index.html");
}, 3000);
});