derped on reserved words in JS

This commit is contained in:
Paul Liverman III 2018-03-16 17:07:31 -07:00
parent 47869e2047
commit 30f3fb516a
3 changed files with 3 additions and 3 deletions

View File

@ -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}

View File

@ -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");

View File

@ -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"