trying to stop form submission
This commit is contained in:
parent
30f3fb516a
commit
b2a31cc045
@ -17,11 +17,11 @@ class extends Widget
|
|||||||
if @tasks
|
if @tasks
|
||||||
for task in *@tasks
|
for task in *@tasks
|
||||||
li ->
|
li ->
|
||||||
input type: "checkbox", id: "task-#{task.id}", onchange: "check(#{task.id})", checked: task.done
|
input type: "checkbox", id: "task-#{task.id}", onchange: "check(#{task.id});", checked: task.done
|
||||||
text " #{task.text}"
|
text " #{task.text}"
|
||||||
li ->
|
li ->
|
||||||
form {
|
form {
|
||||||
onsubmit: "new_task()"
|
onsubmit: "return new_task();"
|
||||||
}, ->
|
}, ->
|
||||||
input type: "text", id: "new-task", placeholder: "new task"
|
input type: "text", id: "new-task", placeholder: "new task"
|
||||||
input type: "submit", value: "add task"
|
input type: "submit", value: "add task"
|
||||||
|
Loading…
Reference in New Issue
Block a user