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

Spine: remove count from clear completed button

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