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

@@ -233,7 +233,9 @@
<div id="suggestions"> <div id="suggestions">
<p class="suggest-title-info">YouTube Suggests:</p> <p class="suggest-title-info">YouTube Suggests:</p>
<div class="suggest_bar" id="suggest-song-html"> <div class="suggest_bar" id="suggest-song-html">
</div>
<p class="suggest-title-info hide">Users Suggests:</p>
<div class="suggest_bar hide" id="user-suggest-html">
</div> </div>
</div> </div>
</div> </div>

File diff suppressed because one or more lines are too long

View File

@@ -60,6 +60,7 @@ var Admin = {
socket.on("pw", function(msg) socket.on("pw", function(msg)
{ {
w_p = false; w_p = false;
adminpass = msg; adminpass = msg;
names = ["vote","addsongs","longsongs","frontpage", "allvideos", names = ["vote","addsongs","longsongs","frontpage", "allvideos",
@@ -158,8 +159,10 @@ var Admin = {
"removeplay", "skip", "shuffle"]; "removeplay", "skip", "shuffle"];
if(conf_array['adminpass'] == "" || !w_p) if(conf_array['adminpass'] == "" || !w_p){
hasadmin = false; hasadmin = false;
$(".playlist-tabs").removeClass("hide");
}
else hasadmin = true; else hasadmin = true;
for (var i = 0; i < names.length; i++) for (var i = 0; i < names.length; i++)
@@ -207,7 +210,7 @@ var Admin = {
get_admin:function() 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){ $.each(full_playlist, function(j, current_song){
if(!current_song.now_playing){ //check that the song isnt playing if(!current_song.now_playing){ //check that the song isnt playing
console.log(current_song);
$("#wrapper").append(List.generateSong(current_song, false, true, true)); $("#wrapper").append(List.generateSong(current_song, false, true, true));
} }
}); });
@@ -227,7 +226,6 @@ var List = {
attr = ".vote-container"; attr = ".vote-container";
del_attr = "#del"; del_attr = "#del";
}else if(!list){ }else if(!list){
console.log(song_info);
song.find(".vote-text").text(song_info.duration); song.find(".vote-text").text(song_info.duration);
attr = ".add-suggested"; attr = ".add-suggested";