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
cec047e7
Commit
cec047e7
authored
Dec 29, 2012
by
Peter Michaux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide #main and #footer when no todos
parent
bfb97855
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
labs/architecture-examples/maria/src/js/views/TodosView.js
labs/architecture-examples/maria/src/js/views/TodosView.js
+4
-0
No files found.
labs/architecture-examples/maria/src/js/views/TodosView.js
View file @
cec047e7
...
@@ -11,6 +11,10 @@ maria.SetView.subclass(checkit, 'TodosAppView', {
...
@@ -11,6 +11,10 @@ maria.SetView.subclass(checkit, 'TodosAppView', {
buildData
:
function
()
{
buildData
:
function
()
{
var
model
=
this
.
getModel
();
var
model
=
this
.
getModel
();
var
length
=
model
.
length
;
this
.
find
(
'
#main
'
).
style
.
display
=
(
length
>
0
)
?
''
:
'
none
'
;
this
.
find
(
'
#footer
'
).
style
.
display
=
(
length
>
0
)
?
''
:
'
none
'
;
var
checkbox
=
this
.
find
(
'
#toggle-all
'
);
var
checkbox
=
this
.
find
(
'
#toggle-all
'
);
checkbox
.
checked
=
model
.
isAllCompleted
();
checkbox
.
checked
=
model
.
isAllCompleted
();
checkbox
.
disabled
=
model
.
isEmpty
();
checkbox
.
disabled
=
model
.
isEmpty
();
...
...
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