header.js 272 Bytes
Newer Older
winniehell's avatar
winniehell committed
1
/* eslint-disable */
Clement Ho's avatar
Clement Ho committed
2 3 4 5 6 7 8 9 10
(function() {

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

})();