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
|
@ -50,9 +50,9 @@
|
|||
var promise2 = apiClient.getCultures();
|
||||
var promise3 = apiClient.getCountries();
|
||||
|
||||
$.when(promise1, promise2, promise3).then(function (response1, response2, response3) {
|
||||
Promise.all([promise1, promise2, promise3]).then(function (responses) {
|
||||
|
||||
reloadData(page, response1[0], response2[0], response3[0]);
|
||||
reloadData(page, responses[0], responses[1], responses[2]);
|
||||
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue