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
55f09a27
Commit
55f09a27
authored
Feb 29, 2012
by
Christoph Burgdorf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporally bound editing mode to a single click
parent
de4b70b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
architecture-examples/angularjs/css/overwrite.css
architecture-examples/angularjs/css/overwrite.css
+27
-0
architecture-examples/angularjs/index_new.html
architecture-examples/angularjs/index_new.html
+2
-2
No files found.
architecture-examples/angularjs/css/overwrite.css
View file @
55f09a27
...
@@ -16,4 +16,31 @@ as AngularJS's show directive will keep track of hiding/showing the elements for
...
@@ -16,4 +16,31 @@ as AngularJS's show directive will keep track of hiding/showing the elements for
/*this doesn't seem to be used in the jquery example at all. Its getting in the way */
/*this doesn't seem to be used in the jquery example at all. Its getting in the way */
#todo-count
span
{
#todo-count
span
{
font-weight
:
inherit
;
font-weight
:
inherit
;
}
/*Figure out how to apply classes conditionally so that we can get rid of "editing-true" */
#todo-list
li
.editing-true
{
border-bottom
:
none
;
margin-top
:
-1px
;
padding
:
0
;
}
#todo-list
li
.editing-true
:last-child
{
margin-bottom
:
-1px
;
}
#todo-list
li
.editing-true
.edit
{
display
:
block
;
width
:
444px
;
padding
:
13px
15px
14px
20px
;
margin
:
0
;
}
#todo-list
li
.editing-true
.view
{
display
:
none
;
}
#todo-list
li
.done-true
label
{
color
:
#777777
;
text-decoration
:
line-through
;
}
}
\ No newline at end of file
architecture-examples/angularjs/index_new.html
View file @
55f09a27
...
@@ -21,13 +21,13 @@
...
@@ -21,13 +21,13 @@
<input
id=
"toggle-all"
type=
"checkbox"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<ul
id=
"todo-list"
>
<ul
id=
"todo-list"
>
<li
ng:repeat=
"todo in todos"
>
<li
ng:repeat=
"todo in todos"
ng:click=
"editTodo(todo)"
ng:class=
"'editing-' + todo.editing + ' done-' + todo.done"
>
<div
class=
"view"
>
<div
class=
"view"
>
<input
class=
"toggle"
type=
"checkbox"
name=
"todo.done"
>
<input
class=
"toggle"
type=
"checkbox"
name=
"todo.done"
>
<label>
{{ todo.content }}
</label>
<label>
{{ todo.content }}
</label>
<a
class=
"destroy"
ng:click=
"removeTodo(todo)"
></a>
<a
class=
"destroy"
ng:click=
"removeTodo(todo)"
></a>
</div>
</div>
<input
class=
"edit"
type=
"text"
value=
"{{title}}
"
>
<input
class=
"edit"
type=
"text"
name=
"todo.content
"
>
</li>
</li>
</ul>
</ul>
</section>
</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