From 828b7e03819e3f3ce06771dd56e167a344498e8b Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 26 May 2013 11:38:38 -0400 Subject: [PATCH] Fix #149 and a couple other issues --- api.js | 2 +- www/assets/js/callbacks.js | 2 +- www/assets/js/functions.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api.js b/api.js index d58515aa..24860ef7 100644 --- a/api.js +++ b/api.js @@ -107,7 +107,7 @@ function handleChannelData(params, req, res) { var data = []; for(var j = 0; j < clist.length; j++) { var cname = clist[j]; - if(!cname.match(/^[a-zA-Z0-9]+$/)) { + if(!cname.match(/^[a-zA-Z0-9-_]+$/)) { continue; } var d = { diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index c422902f..57387109 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -60,7 +60,7 @@ Callbacks = { channelNotRegistered: function() { var div = $("
").addClass("alert alert-info").attr("id", "chregnotice") - .insertAfter($(".row")[0]); + .insertBefore($("#main")); $("