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}
|
||||
}
|
||||
create_table "keys", {
|
||||
{"user_id", types.foreign_key primary_key: true}
|
||||
{"user_id", types.foreign_key}
|
||||
{"uuid", types.varchar unique: true}
|
||||
|
||||
{"created_at", types.time}
|
||||
|
@ -28,7 +28,7 @@ function check(id) {
|
||||
}
|
||||
}
|
||||
|
||||
function new() {
|
||||
function new_task() {
|
||||
var text = document.getElementById("new-task");
|
||||
console.log(text); // TEMPORARY
|
||||
var xhr = request("/new");
|
||||
|
@ -21,7 +21,7 @@ class extends Widget
|
||||
text " #{task.text}"
|
||||
li ->
|
||||
form {
|
||||
onsubmit: "new()"
|
||||
onsubmit: "new_task()"
|
||||
}, ->
|
||||
input type: "text", id: "new-task", placeholder: "new task"
|
||||
input type: "submit", value: "add task"
|
||||
|
Loading…
Reference in New Issue
Block a user