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];
|
var linew = $("#queue").children()[data.idx];
|
||||||
$(linew).addClass("alert alert-info");
|
$(linew).addClass("alert alert-info");
|
||||||
|
$("#queue").scrollTop(0);
|
||||||
|
var scroll = $(linew).position().top - $("#queue").position().top;
|
||||||
|
$("#queue").scrollTop(scroll);
|
||||||
POSITION = data.idx;
|
POSITION = data.idx;
|
||||||
if(CHANNELOPTS.allow_voteskip)
|
if(CHANNELOPTS.allow_voteskip)
|
||||||
$("#voteskip").attr("disabled", false);
|
$("#voteskip").attr("disabled", false);
|
||||||
|
|
Loading…
Reference in New Issue