Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
5e4ec9fd
Commit
5e4ec9fd
authored
Apr 08, 2015
by
Arthur Verschaeve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spine: remove count from clear completed button
parent
d1198bb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
15 deletions
+2
-15
examples/spine/js/app.js
examples/spine/js/app.js
+1
-2
examples/spine/node_modules/todomvc-app-css/index.css
examples/spine/node_modules/todomvc-app-css/index.css
+1
-11
examples/spine/src/app.coffee
examples/spine/src/app.coffee
+0
-2
No files found.
examples/spine/js/app.js
View file @
5e4ec9fd
...
...
@@ -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
;
...
...
examples/spine/node_modules/todomvc-app-css/index.css
View file @
5e4ec9fd
...
...
@@ -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
;
}
...
...
examples/spine/src/app.coffee
View file @
5e4ec9fd
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment