Fixed removing of Remove button and faulty variable adminTogg

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-30 23:04:53 +02:00
parent 8ee2d1afa0
commit 34bc8953c0
3 changed files with 16 additions and 18 deletions

View File

@@ -42,12 +42,12 @@ io.on('connection', function(socket){
if(name != "system.indexes")
{
db.collection(name).find({views:{$exists:true}}, function(err, conf){
db.collection(name).count(function(err, num){
db.collection(name).find({now_playing:true}, function(err, np){
complete(np, i, colNames.length-2, name, num-1, conf);
i++;
db.collection(name).count(function(err, num){
db.collection(name).find({now_playing:true}, function(err, np){
complete(np, i, colNames.length-2, name, num-1, conf);
i++;
});
});
});
});
}
});