summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/header.js
blob: dc170c604561c3923661ca2d4a5e59c4d1ae72d9 (plain)
1
2
3
4
5
6
7
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var */

$(document).on('todo:toggle', function(e, count) {
  var $todoPendingCount = $('.todos-count');
  $todoPendingCount.text(gl.text.highCountTrim(count));
  $todoPendingCount.toggleClass('hidden', count === 0);
});