mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added shufflefunction for when in offline
This commit is contained in:
@@ -238,7 +238,16 @@ var Admin = {
|
||||
|
||||
shuffle: function()
|
||||
{
|
||||
socket.emit('shuffle', adminpass !== undefined ? adminpass : "");
|
||||
if(!offline){
|
||||
socket.emit('shuffle', adminpass !== undefined ? adminpass : "");
|
||||
} else {
|
||||
for(var x = 0; x < full_playlist.length; x++){
|
||||
var num = Math.floor(Math.random()*1000000);
|
||||
full_playlist[x].added = num;
|
||||
}
|
||||
List.sortList();
|
||||
List.populate_list(full_playlist);
|
||||
}
|
||||
},
|
||||
|
||||
get_admin:function()
|
||||
|
||||
Reference in New Issue
Block a user