Change mark message buttons visibility with hidden attr
This commit is contained in:
parent
179c70f725
commit
c751967d0e
3 changed files with 5 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue