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
e6d89469
Commit
e6d89469
authored
Aug 22, 2015
by
Duilio Protti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not show number of items completed in the Clear completed button.
See
https://github.com/tastejs/todomvc-app-css#6
parent
8464bc38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
examples/gwt/src/com/todo/client/ToDoView.java
examples/gwt/src/com/todo/client/ToDoView.java
+0
-4
examples/gwt/src/com/todo/client/ToDoView.ui.xml
examples/gwt/src/com/todo/client/ToDoView.ui.xml
+1
-3
No files found.
examples/gwt/src/com/todo/client/ToDoView.java
View file @
e6d89469
...
...
@@ -59,9 +59,6 @@ public class ToDoView extends Composite implements ToDoPresenter.View {
@UiField
Element
todoStatsContainer
;
@UiField
SpanElement
clearTasksCount
;
@UiField
Button
clearCompleted
;
...
...
@@ -149,7 +146,6 @@ public class ToDoView extends Composite implements ToDoPresenter.View {
remainingTasksCount
.
setInnerText
(
Integer
.
toString
(
remainingTasks
));
remainingTasksLabel
.
setInnerText
(
remainingTasks
>
1
||
remainingTasks
==
0
?
"items"
:
"item"
);
clearTasksCount
.
setInnerHTML
(
Integer
.
toString
(
completedTasks
));
toggleAll
.
setChecked
(
totalTasks
==
completedTasks
);
}
...
...
examples/gwt/src/com/todo/client/ToDoView.ui.xml
View file @
e6d89469
...
...
@@ -39,9 +39,7 @@
<g:Hyperlink
targetHistoryToken=
"/completed"
styleName=
"{style.inline}"
ui:field=
"routingCompleted"
>
Completed
</g:Hyperlink>
</li>
</ul>
<g:Button
ui:field=
"clearCompleted"
>
Clear completed (
<span
class=
"number-done"
ui:field=
"clearTasksCount"
></span>
)
</g:Button>
<g:Button
ui:field=
"clearCompleted"
></g:Button>
</footer>
</section>
...
...
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