Close reply panel

This commit is contained in:
Mouse Reeve
2021-09-09 08:20:55 -07:00
parent 49f1226f3a
commit 055cced75b
2 changed files with 8 additions and 2 deletions

View File

@ -79,7 +79,13 @@ let StatusCache = new class {
modal.getElementsByClassName("modal-close")[0].click();
}
// Update buttons
// Close reply panel
let reply = form.closest(".reply-panel");
if (!!reply) {
document.querySelector("[data-controls=" + reply.id + "]").click();
}
// Update shelve buttons
}
}();