summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/index.html b/index.html
index dc0d0b6..bff8faa 100644
--- a/index.html
+++ b/index.html
@@ -17,9 +17,13 @@
<section id="main">
<ul id="todo-list">
{{#each controller itemController="todo"}}
- <li {{bindAttr class="isCompleted:completed"}}>
- {{view Ember.Checkbox checkedBinding="isCompleted" class="toggle"}}
- <label>{{title}}</label><button class="destroy"></button>
+ <li {{bindAttr class="isCompleted:completed isEditing:editing"}}>
+ {{#if isEditing}}
+ <input class="edit">
+ {{else}}
+ {{view Ember.Checkbox checkedBinding="isCompleted" class="toggle"}}
+ <label {{action "editTodo" on="doubleClick"}}>{{title}}</label><button class="destroy"></button>
+ {{/if}}
</li>
{{/each}}
</ul>