mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update collection menus
This commit is contained in:
parent
65442321a0
commit
8119b930e4
17 changed files with 183 additions and 52 deletions
|
@ -1517,27 +1517,18 @@
|
|||
|
||||
self.instantMix = function (id) {
|
||||
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
var itemLimit = 100;
|
||||
|
||||
ApiClient.getItem(userId, id).done(function (item) {
|
||||
ApiClient.getInstantMixFromItem(id, {
|
||||
UserId: Dashboard.getCurrentUserId(),
|
||||
Fields: getItemFields,
|
||||
Limit: itemLimit
|
||||
|
||||
var promise;
|
||||
var itemLimit = 100;
|
||||
}).done(function (result) {
|
||||
|
||||
promise = ApiClient.getInstantMixFromItem(id, {
|
||||
UserId: Dashboard.getCurrentUserId(),
|
||||
Fields: getItemFields,
|
||||
Limit: itemLimit
|
||||
});
|
||||
|
||||
promise.done(function (result) {
|
||||
|
||||
self.play({ items: result.Items });
|
||||
|
||||
});
|
||||
self.play({ items: result.Items });
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
self.stop = function (destroyRenderer) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue