mirror of https://github.com/calzoneman/sync.git
fixy fixy
This commit is contained in:
parent
dde7ae2c79
commit
8b0a960440
|
@ -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);
|
||||
},
|
||||
|
|
|
@ -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++;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue