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
Sven Franck
todomvc
Commits
80c34776
Commit
80c34776
authored
Jul 03, 2015
by
Arthur Verschaeve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enyo-backbone: remove count from clear completed button
Ref #1234
parent
3892594b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
20 deletions
+2
-20
examples/enyo_backbone/js/controllers/NotepadController.js
examples/enyo_backbone/js/controllers/NotepadController.js
+1
-3
examples/enyo_backbone/node_modules/todomvc-app-css/index.css
...ples/enyo_backbone/node_modules/todomvc-app-css/index.css
+1
-17
No files found.
examples/enyo_backbone/js/controllers/NotepadController.js
View file @
80c34776
/*jshint strict:false */
/*jshint strict:false */
/*global enyo:false, $:false */
/*global enyo:false, $:false */
/*exported ENTER_KEY, ESC_KEY */
/*exported ENTER_KEY, ESC_KEY */
// This is based on Enyo 2.1.1. The next version (2.3) of Enyo will more tightly integrate MVC and should require less custom code.
// This is based on Enyo 2.1.1. The next version (2.3) of Enyo will more tightly integrate MVC and should require less custom code.
...
@@ -184,10 +184,8 @@ enyo.kind({
...
@@ -184,10 +184,8 @@ enyo.kind({
// update the clear completed button
// update the clear completed button
if
(
completedTasks
.
length
===
0
)
{
if
(
completedTasks
.
length
===
0
)
{
enyo
.
$
[
'
clear-completed
'
].
hide
();
enyo
.
$
[
'
clear-completed
'
].
hide
();
enyo
.
$
[
'
clear-completed
'
].
setContent
(
''
);
}
else
{
}
else
{
enyo
.
$
[
'
clear-completed
'
].
show
();
enyo
.
$
[
'
clear-completed
'
].
show
();
enyo
.
$
[
'
clear-completed
'
].
setContent
(
'
Clear completed (
'
+
completedTasks
.
length
+
'
)
'
);
}
}
}
}
// set the correct ui representation for each task. Use the top level todo-list object to navigate down the rows
// set the correct ui representation for each task. Use the top level todo-list object to navigate down the rows
...
...
examples/enyo_backbone/node_modules/todomvc-app-css/index.css
View file @
80c34776
...
@@ -15,11 +15,9 @@ button {
...
@@ -15,11 +15,9 @@ button {
font-weight
:
inherit
;
font-weight
:
inherit
;
color
:
inherit
;
color
:
inherit
;
-webkit-appearance
:
none
;
-webkit-appearance
:
none
;
-ms-appearance
:
none
;
appearance
:
none
;
appearance
:
none
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
}
}
...
@@ -33,7 +31,6 @@ body {
...
@@ -33,7 +31,6 @@ body {
margin
:
0
auto
;
margin
:
0
auto
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-weight
:
300
;
font-weight
:
300
;
}
}
...
@@ -83,7 +80,6 @@ input[type="checkbox"] {
...
@@ -83,7 +80,6 @@ input[type="checkbox"] {
color
:
rgba
(
175
,
47
,
47
,
0.15
);
color
:
rgba
(
175
,
47
,
47
,
0.15
);
-webkit-text-rendering
:
optimizeLegibility
;
-webkit-text-rendering
:
optimizeLegibility
;
-moz-text-rendering
:
optimizeLegibility
;
-moz-text-rendering
:
optimizeLegibility
;
-ms-text-rendering
:
optimizeLegibility
;
text-rendering
:
optimizeLegibility
;
text-rendering
:
optimizeLegibility
;
}
}
...
@@ -102,11 +98,9 @@ input[type="checkbox"] {
...
@@ -102,11 +98,9 @@ input[type="checkbox"] {
padding
:
6px
;
padding
:
6px
;
border
:
1px
solid
#999
;
border
:
1px
solid
#999
;
box-shadow
:
inset
0
-1px
5px
0
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
inset
0
-1px
5px
0
rgba
(
0
,
0
,
0
,
0.2
);
-ms-box-sizing
:
border-box
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-moz-font-smoothing
:
antialiased
;
-ms-font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
font-smoothing
:
antialiased
;
}
}
...
@@ -191,7 +185,6 @@ label[for='toggle-all'] {
...
@@ -191,7 +185,6 @@ label[for='toggle-all'] {
margin
:
auto
0
;
margin
:
auto
0
;
border
:
none
;
/* Mobile Safari */
border
:
none
;
/* Mobile Safari */
-webkit-appearance
:
none
;
-webkit-appearance
:
none
;
-ms-appearance
:
none
;
appearance
:
none
;
appearance
:
none
;
}
}
...
@@ -323,19 +316,10 @@ html #clear-completed:active {
...
@@ -323,19 +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
;
right
:
0
;
white-space
:
nowrap
;
}
#clear-completed
:hover::after
{
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
...
...
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