t
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user