From b36fd3518e67e1face7ea925c04387624e434f68 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 1 May 2013 17:57:59 -0500 Subject: [PATCH] Fix index.html --- www/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/index.html b/www/index.html index 99d5db74..4387a47f 100644 --- a/www/index.html +++ b/www/index.html @@ -91,7 +91,7 @@ host = host.replace("http://", ""); if(host.indexOf("/") != -1) host = host.substring(0, host.indexOf("/")); - host = "http://"; + host = "http://" + host; setInterval(refresh, 10000); refresh(); function refresh() { @@ -119,6 +119,11 @@ } }); } + $("#channel").keydown(function(ev) { + if(ev.keyCode == 13) { + document.location = host + "/r/" + $("#channel").val(); + } + });