Commit babf7df1 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Troopjs: remove count from clear completed button

Ref #1234
parent 218c523d
......@@ -30,7 +30,7 @@
<a href="#/completed">Completed</a>
</li>
</ul>
<button id="clear-completed" data-weave="troopjs-todos/widget/clear">Clear completed (1)</button>
<button id="clear-completed" data-weave="troopjs-todos/widget/clear">Clear completed</button>
</footer>
</section>
<footer id="info">
......
......@@ -13,7 +13,7 @@ define([
'hub:memory/todos/change': function onChange(items) {
var count = items.filter(filter).length;
this.$element.text('Clear completed (' + count + ')').toggle(count > 0);
this.$element.toggle(count > 0);
},
'dom/click': function onClear() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment