mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
switch methods to fetch
This commit is contained in:
parent
6acc4bf69d
commit
dd09b038d5
91 changed files with 349 additions and 314 deletions
|
@ -53,11 +53,11 @@
|
|||
|
||||
var itemsPromise = ApiClient.getItems(userId, query);
|
||||
|
||||
$.when(parentItemPromise, itemsPromise).done(function (r1, r2) {
|
||||
Promise.all([parentItemPromise, itemsPromise]).done(function (responses) {
|
||||
|
||||
var item = r1[0];
|
||||
var item = responses[0];
|
||||
currentItem = item;
|
||||
var result = r2[0];
|
||||
var result = responses[1];
|
||||
|
||||
// Scroll back up so they can see the results from the beginning
|
||||
window.scrollTo(0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue