2017-01-10 23:02:20 +00:00
|
|
|
/* eslint-disable wrap-iife, func-names, space-before-function-paren, prefer-arrow-callback, no-var, max-len */
|
2016-08-08 21:19:46 +00:00
|
|
|
(function() {
|
|
|
|
$(document).on('todo:toggle', function(e, count) {
|
|
|
|
var $todoPendingCount = $('.todos-pending-count');
|
2017-02-21 19:21:49 +00:00
|
|
|
$todoPendingCount.text(gl.text.highCountTrim(count));
|
2016-08-08 21:19:46 +00:00
|
|
|
$todoPendingCount.toggleClass('hidden', count === 0);
|
|
|
|
});
|
|
|
|
})();
|