From 5988d315872b650f93c3fbc0c3297178950b045b Mon Sep 17 00:00:00 2001 From: Simounet Date: Wed, 15 May 2019 19:07:58 +0200 Subject: [PATCH] Fix mark as read action --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 176ab1d..6393eb5 100644 --- a/js/script.js +++ b/js/script.js @@ -253,7 +253,7 @@ function markAsRead(button) { } var buttonToClear = isTotalCounterButton ? $('.js-mark-as-read') : button; - var buttonCount = buttonToClear.html(); + var buttonCount = buttonToClear.find('[data-count="number"]').html(); if ( buttonToClear.hasClass('js-folder-counter') || isTotalCounterButton