Fix index page JS submit

This commit is contained in:
Calvin Montgomery 2017-08-24 21:01:10 -07:00
parent 3d50b8f52e
commit 162f8fd9b5
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ block content
h3 Enter Channel h3 Enter Channel
input#channelname.form-control(type="text", placeholder="Channel Name") input#channelname.form-control(type="text", placeholder="Channel Name")
p.text-muted New channels can be registered from the <a href="/account/channels">My Channels</a> page. p.text-muted New channels can be registered from the <a href="/account/channels">My Channels</a> page.
append footer
script(type="text/javascript"). script(type="text/javascript").
$("#channelname").keydown(function (ev) { $("#channelname").keydown(function (ev) {
if (ev.keyCode === 13) { if (ev.keyCode === 13) {