Created
May 23, 2013 12:22
-
-
Save lefnire/5635678 to your computer and use it in GitHub Desktop.
change for task modal edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<modal> | |
<input type=text value={_editingTask.text} /> | |
<input type=date value={_editingTask.dueDate} /> | |
... | |
</modal> | |
<task> | |
<a x-bind="click:taskSetEditing" data-id={:task.id}>Edit</a> | |
</task> | |
appExports.taskSetEditing = (e, el)-> | |
model.set '_editingTask', model.at("_user.tasks."+$(el).attr('data-id')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment