Commit bc5391d3 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Componentjs: remove count from clear completed button

parent 5c026282
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<li><a href="#" data-tag="completed">Completed</a></li> <li><a href="#" data-tag="completed">Completed</a></li>
</ul> </ul>
<button class="todo__completed todo__button"> <button class="todo__completed todo__button">
Clear completed (<span data-bind="data:status-items-completed"></span>) Clear completed
</button> </button>
</footer> </footer>
</div> </div>
......
...@@ -165,7 +165,6 @@ ...@@ -165,7 +165,6 @@
func: function (ev, value) { func: function (ev, value) {
if (value > 0) { if (value > 0) {
$('.todo__completed', ui).css('display', 'block'); $('.todo__completed', ui).css('display', 'block');
$('*[data-bind=\'data:status-items-completed\']', ui).text(value);
} else { } else {
$('.todo__completed', ui).css('display', 'none'); $('.todo__completed', ui).css('display', 'none');
} }
......
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