Minor fix

This commit is contained in:
calzoneman 2013-06-25 10:38:19 -04:00
parent 08bc926df4
commit 81d85311e7

View file

@ -300,6 +300,7 @@ function addQueueButtons(li) {
menu.find(".qbtn-delete").addClass("btn-danger"); menu.find(".qbtn-delete").addClass("btn-danger");
} }
else if(menu.find(".btn").length != 0) { else if(menu.find(".btn").length != 0) {
li.unbind("contextmenu");
li.contextmenu(function(ev) { li.contextmenu(function(ev) {
ev.preventDefault(); ev.preventDefault();
if(menu.css("display") == "none") if(menu.css("display") == "none")
@ -322,12 +323,14 @@ function rebuildPlaylist() {
var i = 0; var i = 0;
qli.each(function() { qli.each(function() {
var li = $(this); var li = $(this);
(function(i) {
setTimeout(function() { setTimeout(function() {
addQueueButtons(li); addQueueButtons(li);
if(i == qli.length - 1) { if(i == qli.length - 1) {
REBUILDING = false; REBUILDING = false;
} }
}, 10*i); }, 10*i);
})(i);
i++; i++;
}); });
} }