add close button

This commit is contained in:
2026-03-31 21:37:10 -04:00
parent a8c8feeb3e
commit d283ad0a0a
2 changed files with 25 additions and 6 deletions

View File

@@ -12,9 +12,11 @@
<div id="popup_background" class="blocked hidden"></div>
<div id="change_password_dialouge" class="hidden card static_center">
<div id="change_password_dialogue" class="hidden card static_center">
Change Password
<button id="close_password_dialogue">X</button>
<div id="password_error" class="error hidden">
<div id="password_text"></div>
<button id="password_error_close_button" class="close_error_button">
@@ -140,7 +142,7 @@
popup_botton.addEventListener("click", () => {
document.getElementById("popup_background").classList.remove("hidden");
document
.getElementById("change_password_dialouge")
.getElementById("change_password_dialogue")
.classList.remove("hidden");
});
</script>
@@ -189,10 +191,10 @@
"csrf_token",
document.getElementById("csrf_token_storage").value,
);
formData.append("old", file);
formData.append("old_password", file);
document
.getElementById("change_password_dialouge")
.getElementById("change_password_dialogue")
.classList.add("hidden");
document.getElementById("popup_background").classList.add("hidden");
});
@@ -237,4 +239,15 @@
});
</script>
<script type="text/javascript">
document
.getElementById("close_password_dialogue")
.addEventListener("click", () => {
document
.getElementById("change_password_dialogue")
.classList.add("hidden");
document.getElementById("popup_background").classList.add("hidden");
});
</script>
<script src="/static/error/error.js" type="text/javascript"></script>