Change mark message buttons visibility with hidden attr

This commit is contained in:
Anton Khorev 2023-08-11 20:35:36 +03:00
parent 179c70f725
commit c751967d0e
3 changed files with 5 additions and 11 deletions

View file

@ -27,6 +27,8 @@ $(document).ready(function () {
function updateReadState(target, isRead) {
$(target).closest("tr")
.toggleClass("inbox-row", isRead)
.toggleClass("inbox-row-unread", !isRead);
.toggleClass("inbox-row-unread", !isRead)
.find(".inbox-mark-unread button").prop("hidden", !isRead).end()
.find(".inbox-mark-read button").prop("hidden", isRead);
}
});