X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/179c70f725848b0d0fc292da0ff2de7325551990..2fcee9625dcd192d0c524f27d9cb182c883e31b4:/app/assets/javascripts/messages.js diff --git a/app/assets/javascripts/messages.js b/app/assets/javascripts/messages.js index 8c30f9b34..5accc1a60 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").prop("hidden", !isRead).end() + .find(".inbox-mark-read").prop("hidden", isRead); } });