derped on reserved words in JS
This commit is contained in:
parent
47869e2047
commit
30f3fb516a
@ -14,7 +14,7 @@ make_migrations {
|
|||||||
{"updated_at", types.time}
|
{"updated_at", types.time}
|
||||||
}
|
}
|
||||||
create_table "keys", {
|
create_table "keys", {
|
||||||
{"user_id", types.foreign_key primary_key: true}
|
{"user_id", types.foreign_key}
|
||||||
{"uuid", types.varchar unique: true}
|
{"uuid", types.varchar unique: true}
|
||||||
|
|
||||||
{"created_at", types.time}
|
{"created_at", types.time}
|
||||||
|
@ -28,7 +28,7 @@ function check(id) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function new() {
|
function new_task() {
|
||||||
var text = document.getElementById("new-task");
|
var text = document.getElementById("new-task");
|
||||||
console.log(text); // TEMPORARY
|
console.log(text); // TEMPORARY
|
||||||
var xhr = request("/new");
|
var xhr = request("/new");
|
||||||
|
@ -21,7 +21,7 @@ class extends Widget
|
|||||||
text " #{task.text}"
|
text " #{task.text}"
|
||||||
li ->
|
li ->
|
||||||
form {
|
form {
|
||||||
onsubmit: "new()"
|
onsubmit: "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