mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
switch to Promise.all
This commit is contained in:
parent
9932bc3eb5
commit
f65465a5ae
25 changed files with 60 additions and 80 deletions
|
@ -70,10 +70,10 @@
|
|||
|
||||
var promise5 = ApiClient.getJSON(ApiClient.getUrl("Channels"));
|
||||
|
||||
$.when(promise4, promise5).then(function (response4, response5) {
|
||||
Promise.all([promise4, promise5]).then(function (responses) {
|
||||
|
||||
loadMediaFolders(page, response4[0].Items);
|
||||
loadChannels(page, response5[0].Items);
|
||||
loadMediaFolders(page, responses[0].Items);
|
||||
loadChannels(page, responses[1].Items);
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue