mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update chromecast
This commit is contained in:
parent
f6995379a2
commit
3f09347bf7
8 changed files with 185 additions and 68 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
var currentItem;
|
||||
var shape;
|
||||
var currentItemsQuery;
|
||||
|
||||
function getPromise() {
|
||||
|
||||
|
@ -404,6 +405,8 @@
|
|||
|
||||
addCurrentItemToQuery(query);
|
||||
|
||||
currentItemsQuery = query;
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
|
||||
|
||||
var html = '';
|
||||
|
@ -422,7 +425,8 @@
|
|||
|
||||
html = LibraryBrowser.getListViewHtml({
|
||||
items: result.Items,
|
||||
smallIcon: true
|
||||
smallIcon: true,
|
||||
playFromHere: true
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -462,7 +466,8 @@
|
|||
|
||||
html = LibraryBrowser.getListViewHtml({
|
||||
items: result.Items,
|
||||
smallIcon: true
|
||||
smallIcon: true,
|
||||
playFromHere: true
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -509,6 +514,16 @@
|
|||
LibraryBrowser.showPlayMenu(this, currentItem.Id, currentItem.Type, false, "Audio", userdata.PlaybackPositionTicks);
|
||||
});
|
||||
|
||||
$('.itemsContainer', page).on('playallfromhere', function (e, index) {
|
||||
|
||||
LibraryBrowser.playAllFromHere(currentItemsQuery, index);
|
||||
|
||||
}).on('queueallfromhere', function (e, index) {
|
||||
|
||||
LibraryBrowser.queueAllFromHere(currentItemsQuery, index);
|
||||
|
||||
});
|
||||
|
||||
}).on('pageshow', "#itemByNameDetailPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue