debian-mirror-gitlab/app/assets/javascripts/header.js
2017-08-17 22:00:37 +05:30

7 lines
305 B
JavaScript

/* 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);
});