Commit 5e4ec9fd authored by Arthur Verschaeve's avatar Arthur Verschaeve

Spine: remove count from clear completed button

parent d1198bb2
......@@ -133,8 +133,7 @@
};
active = Todo.active().length;
completed = Todo.completed().length;
this.count.html("<strong>" + active + "</strong> " + (text(active)) + " left");
return this.clearCompleted.text("Clear completed (" + completed + ")");
return this.count.html("<strong>" + active + "</strong> " + (text(active)) + " left");
};
return TodoApp;
......
......@@ -316,20 +316,10 @@ html #clear-completed:active {
line-height: 20px;
text-decoration: none;
cursor: pointer;
visibility: hidden;
position: relative;
}
#clear-completed::after {
visibility: visible;
content: 'Clear completed';
position: absolute;
top: 0;
right: 0;
white-space: nowrap;
}
#clear-completed:hover::after {
#clear-completed:hover {
text-decoration: underline;
}
......
......@@ -80,8 +80,6 @@ class TodoApp extends Spine.Controller
active = Todo.active().length
completed = Todo.completed().length
@count.html "<strong>#{ active }</strong> #{ text active } left"
@clearCompleted.text "Clear completed (#{ completed })"
$ ->
new TodoApp el: $('#todoapp')
......
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