summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/header.js
blob: a853c3aeb1fa63052fe924c4ca64e2f92d9fea68 (plain)
1
2
3
4
5
6
7
8
/* eslint-disable wrap-iife, func-names, space-before-function-paren, prefer-arrow-callback, no-var, max-len */
(function() {
  $(document).on('todo:toggle', function(e, count) {
    var $todoPendingCount = $('.todos-pending-count');
    $todoPendingCount.text(gl.text.highCountTrim(count));
    $todoPendingCount.toggleClass('hidden', count === 0);
  });
})();