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:
@@ -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>
|
||||||
|
|||||||
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user