X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/179c70f725848b0d0fc292da0ff2de7325551990..c751967d0ec42b14b3f79016f0cfaa81d08849c3:/app/assets/javascripts/messages.js?ds=inline diff --git a/app/assets/javascripts/messages.js b/app/assets/javascripts/messages.js index 8c30f9b34..d34ffb466 100644 --- a/app/assets/javascripts/messages.js +++ b/app/assets/javascripts/messages.js @@ -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); } });