]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/messages.js
Show blocked api response when commenting notes
[rails.git] / app / assets / javascripts / messages.js
index d34ffb46662bfa8caa1aed64b90271b146559d8c..cc86da05ea38365abaaa39a75f7dd25f94007dc6 100644 (file)
@@ -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);
   }
 });