]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/messages.js
Use rtlcss instead of r2 for RTL support
[rails.git] / app / assets / javascripts / messages.js
index 8c30f9b34a726b2c399d2ab5eb473f8bb2029cb7..5accc1a6036fb94ec958eaf8f5c803832ecf3c09 100644 (file)
@@ -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);
   }
 });