t
This commit is contained in:
@@ -4,6 +4,10 @@ const errmsg = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
function navigateTop(page) {
|
||||
window.open(new URL(page, window.location.href).href, "_top");
|
||||
}
|
||||
|
||||
document.getElementById("login-form").addEventListener("submit", async function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
@@ -63,7 +67,7 @@ document.getElementById("login-form").addEventListener("submit", async function(
|
||||
`<div class="form-group"><p class="page-paragraph-success">Uspešna registracija! Preusmerjanje na prijavo...</p></div>`
|
||||
);
|
||||
}, 500);
|
||||
window.location.href = "login.html";
|
||||
navigateTop("login.html");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user