Added overlay for when its an empty playlist

This commit is contained in:
Kasper Rynning-Tønnesen
2015-05-01 09:43:36 +02:00
parent fd3e9c1bc0
commit 48b29a351d
4 changed files with 26 additions and 5 deletions

View File

@@ -103,10 +103,11 @@ io.on('connection', function(socket){
db.createCollection(coll, function(err, docs){
db.collection(coll).insert({"addsongs":false, "adminpass":"", "allvideos":false, "frontpage":true, "longsongs":false, "removeplay": false, "shuffle": true, "skip": false, "skips": [], "startTime":get_time(), "views": [], "vote": false}, function(err, docs)
{
db.collection(coll).find().sort({votes:-1}, function(err, docs) {
sort_list(coll, socket, true, false);
/*db.collection(coll).find().sort({votes:-1}, function(err, docs) {
socket.emit(coll, docs);
//send_play(coll, socket);
});
});*/
});
});
}