more client sync stubs
This commit is contained in:
parent
fcc1746fde
commit
4ed9e6d637
12 changed files with 297 additions and 25 deletions
|
@ -46,7 +46,7 @@
|
|||
style += 'position:fixed;top:' + pos.top + 'px;left:' + pos.left + 'px';
|
||||
}
|
||||
|
||||
html += '<paper-dialog id="' + id + '" entry-animation="fade-in-animation" exit-animation="fade-out-animation" with-backdrop style="' + style + '">';
|
||||
html += '<paper-dialog id="' + id + '" with-backdrop style="' + style + '">';
|
||||
|
||||
if (options.title) {
|
||||
html += '<h2>';
|
||||
|
|
|
@ -1561,8 +1561,8 @@
|
|||
posterWidth = 200;
|
||||
}
|
||||
else if (options.shape == 'detailPageSquare') {
|
||||
posterWidth = 200;
|
||||
squareSize = 200;
|
||||
posterWidth = 240;
|
||||
squareSize = 240;
|
||||
}
|
||||
else if (options.shape == 'detailPage169') {
|
||||
posterWidth = 320;
|
||||
|
|
|
@ -587,6 +587,11 @@
|
|||
};
|
||||
|
||||
self.currentPlaylistIndex = function (i) {
|
||||
|
||||
if (i == null) {
|
||||
return currentPlayer.currentPlaylistIndex();
|
||||
}
|
||||
|
||||
currentPlayer.currentPlaylistIndex(i);
|
||||
};
|
||||
|
||||
|
|
|
@ -700,6 +700,18 @@
|
|||
|
||||
var itemsContainer = page.querySelector('.playlist');
|
||||
itemsContainer.innerHTML = html;
|
||||
|
||||
var index = MediaController.currentPlaylistIndex();
|
||||
|
||||
if (index != -1) {
|
||||
|
||||
var item = itemsContainer.querySelectorAll('.listItem')[index];
|
||||
var img = item.querySelector('.listviewImage');
|
||||
|
||||
img.classList.remove('lazy');
|
||||
img.classList.add('playlistIndexIndicatorImage');
|
||||
}
|
||||
|
||||
ImageLoader.lazyChildren(itemsContainer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue