mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removed a shit-ton of logs
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user