2.3.8 play queue scroll fix

This commit is contained in:
Trevor Squillario 2012-12-21 01:27:24 -05:00
parent 77831e1ef6
commit 8d5629e752
7 changed files with 17 additions and 21 deletions

View file

@ -1123,6 +1123,10 @@ function loadCurrentPlaylist() {
var html = localStorage.getItem('CurrentPlaylist');
if (html != '' && html !== undefined && html !== null) {
$('#CurrentPlaylistContainer tbody').html(html);
var songid = $('#CurrentPlaylistContainer tbody tr.playing').attr('childid');
if (typeof songid != 'undefined') {
$('#CurrentPlaylist').scrollTo($('#' + songid), 400);
}
if (debug) { console.log('Load Play Queue From localStorage: ' + html.length + ' characters'); }
}
} else {