mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Logging..
This commit is contained in:
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
@@ -68,7 +68,7 @@ var List = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
deleted_song: function(deleted){
|
deleted_song: function(deleted){
|
||||||
console.log(deleted);
|
|
||||||
var index = List.getIndexOfSong(deleted);
|
var index = List.getIndexOfSong(deleted);
|
||||||
var to_delete = $("#wrapper").children()[index];
|
var to_delete = $("#wrapper").children()[index];
|
||||||
try{
|
try{
|
||||||
@@ -84,8 +84,6 @@ var List = {
|
|||||||
document.getElementById('wrapper').scrollTop += -1;
|
document.getElementById('wrapper').scrollTop += -1;
|
||||||
}catch(err){
|
}catch(err){
|
||||||
full_playlist.splice(List.getIndexOfSong(deleted), 1);
|
full_playlist.splice(List.getIndexOfSong(deleted), 1);
|
||||||
console.log(full_playlist.length-1);
|
|
||||||
console.log("here");
|
|
||||||
$("#wrapper").children()[$("#wrapper").children().length-1].remove();
|
$("#wrapper").children()[$("#wrapper").children().length-1].remove();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -104,9 +102,7 @@ var List = {
|
|||||||
|
|
||||||
song_change: function(time){
|
song_change: function(time){
|
||||||
var length = full_playlist.length-1;
|
var length = full_playlist.length-1;
|
||||||
console.log(full_playlist[0]);
|
|
||||||
console.log(full_playlist[full_playlist.length-1]);
|
|
||||||
console.log(full_playlist);
|
|
||||||
full_playlist[0].now_playing = true;
|
full_playlist[0].now_playing = true;
|
||||||
full_playlist[0].votes = 0;
|
full_playlist[0].votes = 0;
|
||||||
full_playlist[0].guids = [];
|
full_playlist[0].guids = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user