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
e02139a4
Commit
e02139a4
authored
Apr 07, 2015
by
Arthur Verschaeve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chaplin-brunch: remove count from clear completed button
parent
0ef0bd3f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
22 deletions
+4
-22
examples/chaplin-brunch/app/views/footer-view.coffee
examples/chaplin-brunch/app/views/footer-view.coffee
+0
-1
examples/chaplin-brunch/app/views/templates/footer.hbs
examples/chaplin-brunch/app/views/templates/footer.hbs
+1
-1
examples/chaplin-brunch/node_modules/todomvc-app-css/index.css
...les/chaplin-brunch/node_modules/todomvc-app-css/index.css
+1
-17
examples/chaplin-brunch/public/app.js
examples/chaplin-brunch/public/app.js
+1
-2
examples/chaplin-brunch/public/app.js.map
examples/chaplin-brunch/public/app.js.map
+1
-1
No files found.
examples/chaplin-brunch/app/views/footer-view.coffee
View file @
e02139a4
...
...
@@ -32,7 +32,6 @@ module.exports = class FooterView extends View
countDescription
=
(
if
active
is
1
then
'item'
else
'items'
)
@
find
(
'.todo-count-title'
).
textContent
=
countDescription
@
find
(
'#completed-count'
).
textContent
=
"(
#{
completed
}
)"
utils
.
toggle
@
find
(
'#clear-completed'
),
completed
>
0
utils
.
toggle
@
el
,
total
>
0
...
...
examples/chaplin-brunch/app/views/templates/footer.hbs
View file @
e02139a4
...
...
@@ -14,4 +14,4 @@
<a
href=
"#/completed"
>
Completed
</a>
</li>
</ul>
<button
id=
"clear-completed"
>
Clear completed
<span
id=
"completed-count"
></span>
</button>
<button
id=
"clear-completed"
>
Clear completed
</button>
examples/chaplin-brunch/node_modules/todomvc-app-css/index.css
View file @
e02139a4
...
...
@@ -15,11 +15,9 @@ button {
font-weight
:
inherit
;
color
:
inherit
;
-webkit-appearance
:
none
;
-ms-appearance
:
none
;
appearance
:
none
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
}
...
...
@@ -33,7 +31,6 @@ body {
margin
:
0
auto
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-weight
:
300
;
}
...
...
@@ -83,7 +80,6 @@ input[type="checkbox"] {
color
:
rgba
(
175
,
47
,
47
,
0.15
);
-webkit-text-rendering
:
optimizeLegibility
;
-moz-text-rendering
:
optimizeLegibility
;
-ms-text-rendering
:
optimizeLegibility
;
text-rendering
:
optimizeLegibility
;
}
...
...
@@ -102,11 +98,9 @@ input[type="checkbox"] {
padding
:
6px
;
border
:
1px
solid
#999
;
box-shadow
:
inset
0
-1px
5px
0
rgba
(
0
,
0
,
0
,
0.2
);
-ms-box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
}
...
...
@@ -191,7 +185,6 @@ label[for='toggle-all'] {
margin
:
auto
0
;
border
:
none
;
/* Mobile Safari */
-webkit-appearance
:
none
;
-ms-appearance
:
none
;
appearance
:
none
;
}
...
...
@@ -323,19 +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
;
right
:
0
;
white-space
:
nowrap
;
}
#clear-completed
:hover::after
{
#clear-completed
:hover
{
text-decoration
:
underline
;
}
...
...
examples/chaplin-brunch/public/app.js
View file @
e02139a4
...
...
@@ -417,7 +417,6 @@ module.exports = FooterView = (function(_super) {
this
.
find
(
'
#todo-count > strong
'
).
textContent
=
active
;
countDescription
=
(
active
===
1
?
'
item
'
:
'
items
'
);
this
.
find
(
'
.todo-count-title
'
).
textContent
=
countDescription
;
this
.
find
(
'
#completed-count
'
).
textContent
=
"
(
"
+
completed
+
"
)
"
;
utils
.
toggle
(
this
.
find
(
'
#clear-completed
'
),
completed
>
0
);
return
utils
.
toggle
(
this
.
el
,
total
>
0
);
};
...
...
@@ -481,7 +480,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
return
"
<span id=
\"
todo-count
\"
>
\n
<strong></strong>
\n
<span class=
\"
todo-count-title
\"
>items</span>
\n
left
\n
</span>
\n
<ul id=
\"
filters
\"
>
\n
<li>
\n
<a href=
\"
#/
\"
>All</a>
\n
</li>
\n
<li>
\n
<a href=
\"
#/active
\"
>Active</a>
\n
</li>
\n
<li>
\n
<a href=
\"
#/completed
\"
>Completed</a>
\n
</li>
\n
</ul>
\n
<button id=
\"
clear-completed
\"
>Clear completed
<span id=
\"
completed-count
\"
></span>
</button>
\n
"
;
return
"
<span id=
\"
todo-count
\"
>
\n
<strong></strong>
\n
<span class=
\"
todo-count-title
\"
>items</span>
\n
left
\n
</span>
\n
<ul id=
\"
filters
\"
>
\n
<li>
\n
<a href=
\"
#/
\"
>All</a>
\n
</li>
\n
<li>
\n
<a href=
\"
#/active
\"
>Active</a>
\n
</li>
\n
<li>
\n
<a href=
\"
#/completed
\"
>Completed</a>
\n
</li>
\n
</ul>
\n
<button id=
\"
clear-completed
\"
>Clear completed</button>
\n
"
;
});
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
define
([],
function
()
{
...
...
examples/chaplin-brunch/public/app.js.map
View file @
e02139a4
This diff is collapsed.
Click to expand it.
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