X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c751967d0ec42b14b3f79016f0cfaa81d08849c3..3ea2c30c58bb23247296fc212fcf7426668248a6:/app/assets/javascripts/messages.js diff --git a/app/assets/javascripts/messages.js b/app/assets/javascripts/messages.js index d34ffb466..cc86da05e 100644 --- a/app/assets/javascripts/messages.js +++ b/app/assets/javascripts/messages.js @@ -22,13 +22,15 @@ $(document).ready(function () { $(".user-button").before(data.inboxanchor); $("#inbox-count").replaceWith(data.inbox_count); + $("#outbox-count").replaceWith(data.outbox_count); + $("#muted-count").replaceWith(data.muted_count); } function updateReadState(target, isRead) { $(target).closest("tr") .toggleClass("inbox-row", isRead) .toggleClass("inbox-row-unread", !isRead) - .find(".inbox-mark-unread button").prop("hidden", !isRead).end() - .find(".inbox-mark-read button").prop("hidden", isRead); + .find(".inbox-mark-unread").prop("hidden", !isRead).end() + .find(".inbox-mark-read").prop("hidden", isRead); } });