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

@ -643,7 +643,7 @@ Callbacks = {
},
queue: function(data) {
var li = makeQueueEntry(data.media, false);
var li = makeQueueEntry(data.media, true);
li.hide();
var idx = data.pos;
var q = $("#queue");
@ -690,6 +690,12 @@ Callbacks = {
},
moveVideo: function(data) {
if(data.from < POSITION && data.to >= POSITION)
POSITION--;
else if(data.from > POSITION && data.to <= POSITION)
POSITION++;
else if(data.from == POSITION)
POSITION = data.to;
if(data.moveby != CLIENT.name)
playlistMove(data.from, data.to);
},

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++;
});
}

View File

@ -33,7 +33,6 @@
<li class="active"><a href="index.html">Home</a></li>
<li><a href="https://github.com/calzoneman/sync/wiki/Beginner%27s-Guide-and-FAQ" target="_blank">Help</a></li>
<li><a href="account.html">Account</a></li>
<li><a href="javascript:void(0)" id="optlink">Options</a></li>
</ul>
</div>
</div>