mirror of https://github.com/calzoneman/sync.git
Scroll playlist to current video
This commit is contained in:
parent
4e2702f65f
commit
cb9624e523
|
@ -248,6 +248,9 @@ function initCallbacks() {
|
|||
}
|
||||
var linew = $("#queue").children()[data.idx];
|
||||
$(linew).addClass("alert alert-info");
|
||||
$("#queue").scrollTop(0);
|
||||
var scroll = $(linew).position().top - $("#queue").position().top;
|
||||
$("#queue").scrollTop(scroll);
|
||||
POSITION = data.idx;
|
||||
if(CHANNELOPTS.allow_voteskip)
|
||||
$("#voteskip").attr("disabled", false);
|
||||
|
|
Loading…
Reference in New Issue