more fixes

This commit is contained in:
calzoneman 2013-05-27 21:12:07 -04:00
parent cc8c2d8463
commit a3138abd38
3 changed files with 4 additions and 5 deletions

View File

@ -239,12 +239,12 @@ function registerChannel(name) {
}
function loadChannel(chan) {
if(!name.match(/^[a-zA-Z0-9-_]+$/)) {
if(!chan.name.match(/^[a-zA-Z0-9-_]+$/)) {
return false;
}
var db = getConnection();
if(!db) {
return;
return false;
}
var query = createQuery(

View File

@ -617,7 +617,6 @@ Callbacks = {
},
changeMedia: function(data) {
console.log(data);
$("#currenttitle").text("Currently Playing: " + data.title);
if(data.type != "sc" && PLAYER.type == "sc")
// [](/goddamnitmango)

View File

@ -292,10 +292,10 @@
<script src="./assets/js/jquery.js"></script>
<!-- My Javascript -->
<script src="./assets/js/iourl.js"></script>
<script src="./assets/js/functions.js"></script>
<script src="./assets/js/callbacks.js"></script>
<script src="./assets/js/media.js"></script>
<script src="./assets/js/functions.js"></script>
<script src="./assets/js/client.js"></script>
<script src="./assets/js/callbacks.js"></script>
<!-- APIs -->
<script src="http://api.dmcdn.net/all.js"></script>
<script src="http://jwpsrv.com/library/QouFCLBMEeKC+CIACpYGxA.js"></script>