X-Git-Url: http://git.scottworley.com/vopamoi/blobdiff_plain/7523dc894af60222f05795a43dcae6ecee0b4daa..caa93fd1819b0d57029de637029daf0bc867d17e:/vopamoi.ts diff --git a/vopamoi.ts b/vopamoi.ts index bc7acb7..f127da9 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -80,6 +80,16 @@ const UI = { }, }; +const BrowserUI = { + addTask: function (form: any) { + if (form.taskName.value) { + UI.addTask(form.taskName.value); + form.taskName.value = ""; + } + return false; + }, +}; + function focusTaskNameInput(event: any) { document.getElementById("taskName")!.focus(); event.preventDefault(); @@ -93,14 +103,6 @@ function handleKey(event: any) { } } -function browserCreateTask(form: any) { - if (form.taskName.value) { - UI.addTask(form.taskName.value); - } - form.taskName.value = ""; - return false; -} - function browserInit() { document.body.addEventListener("keydown", handleKey, { capture: false }); Log.replay();