Removed a shit-ton of logs

This commit is contained in:
Kasper Rynning-Tønnesen
2015-12-14 14:48:58 +01:00
parent 0b98c3590d
commit da4f8b1c31
4 changed files with 11 additions and 8 deletions

View File

@@ -60,6 +60,7 @@ var Admin = {
socket.on("pw", function(msg)
{
w_p = false;
adminpass = msg;
names = ["vote","addsongs","longsongs","frontpage", "allvideos",
@@ -158,8 +159,10 @@ var Admin = {
"removeplay", "skip", "shuffle"];
if(conf_array['adminpass'] == "" || !w_p)
if(conf_array['adminpass'] == "" || !w_p){
hasadmin = false;
$(".playlist-tabs").removeClass("hide");
}
else hasadmin = true;
for (var i = 0; i < names.length; i++)
@@ -207,7 +210,7 @@ var Admin = {
get_admin:function()
{
return w_p;
return [w_p, hasadmin];
}
}

View File

@@ -49,7 +49,6 @@ var List = {
$.each(full_playlist, function(j, current_song){
if(!current_song.now_playing){ //check that the song isnt playing
console.log(current_song);
$("#wrapper").append(List.generateSong(current_song, false, true, true));
}
});
@@ -227,7 +226,6 @@ var List = {
attr = ".vote-container";
del_attr = "#del";
}else if(!list){
console.log(song_info);
song.find(".vote-text").text(song_info.duration);
attr = ".add-suggested";