1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 17:10:10 +00:00

userpage: fix email change modal show/hide

This commit is contained in:
Harvey Tindall 2023-09-07 23:35:41 +01:00
parent 53742e5ec2
commit f5a15905e4
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -450,6 +450,7 @@ const addEditEmail = (add: boolean): void => {
_post("/my/email", {"email": input.value}, (req: XMLHttpRequest) => {
if (req.readyState == 4 && (req.status == 303 || req.status == 200)) {
document.dispatchEvent(new CustomEvent("details-reload"));
window.modals.email.close();
}
}, true, (req: XMLHttpRequest) => {
if (req.readyState == 4 && req.status == 401) {