diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index fddd96f0..18b8a6d6 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -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);