mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
More cast and lazy load updates
This commit is contained in:
parent
df87f66b8d
commit
e8084be0db
3 changed files with 14 additions and 4 deletions
|
@ -190,6 +190,14 @@
|
|||
self.seek = function (position) {
|
||||
self.changeStream(position);
|
||||
};
|
||||
|
||||
self.currentPlaylistIndex = function (i) {
|
||||
self.currentPlaylistIndex(i);
|
||||
};
|
||||
|
||||
self.removeFromPlaylist = function (i) {
|
||||
self.removeFromPlaylist(i);
|
||||
};
|
||||
}
|
||||
|
||||
window.MediaController = new mediaController();
|
||||
|
|
|
@ -34,7 +34,8 @@
|
|||
shape: "square",
|
||||
context: 'music',
|
||||
showTitle: true,
|
||||
showParentTitle: true
|
||||
showParentTitle: true,
|
||||
lazy: true
|
||||
});
|
||||
$('.itemsContainer', page).removeClass('timelineItemsContainer');
|
||||
}
|
||||
|
@ -45,7 +46,8 @@
|
|||
context: 'music',
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
timeline: true
|
||||
timeline: true,
|
||||
lazy: true
|
||||
});
|
||||
$('.itemsContainer', page).addClass('timelineItemsContainer');
|
||||
}
|
||||
|
|
|
@ -65,14 +65,14 @@
|
|||
|
||||
var index = parseInt(this.getAttribute('data-index'));
|
||||
|
||||
MediaPlayer.currentPlaylistIndex(index);
|
||||
MediaController.currentPlaylistIndex(index);
|
||||
reloadPlaylist(page);
|
||||
|
||||
}).on('click', '.lnkRemove', function () {
|
||||
|
||||
var index = parseInt(this.getAttribute('data-index'));
|
||||
|
||||
MediaPlayer.removeFromPlaylist(index);
|
||||
MediaController.removeFromPlaylist(index);
|
||||
reloadPlaylist(page);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue