Skip to content

Commit

Permalink
Share totalButton element
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed May 15, 2019
1 parent 1656b99 commit ffd84bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ function markAsRead(button) {
.addClass('hidden')
.html('0');
} else {
$('.js-total-counter').html(parseInt(getButtonCount($('.js-total-counter'))) - buttonCount);
var totalButton = $('.js-total-counter');
totalButton.html(parseInt(getButtonCount(totalButton)) - buttonCount);
buttonToClear
.addClass('hidden')
.html('0')
Expand Down

0 comments on commit ffd84bf

Please sign in to comment.