fixy fixy

This commit is contained in:
Calvin Montgomery 2013-06-24 23:33:00 -04:00
parent dde7ae2c79
commit 8b0a960440
3 changed files with 13 additions and 8 deletions

View file

@ -294,19 +294,19 @@ function rebuildPlaylist() {
if(REBUILDING)
return;
var qli = $("#queue li");
if(qli.length == 0)
return;
REBUILDING = true;
var i = 0;
var qli = $("#queue li");
qli.each(function() {
var li = $(this);
setTimeout(function() {
addQueueButtons(li);
}, 10*i);
if(i == qli.length - 1) {
setTimeout(function() {
if(i == qli.length - 1) {
REBUILDING = false;
}, 10*i);
}
}
}, 10*i);
i++;
});
}