1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

move completely to fetch

This commit is contained in:
Luke Pulverenti 2015-11-28 03:07:44 -05:00
parent ee899a7332
commit 9932bc3eb5
168 changed files with 948 additions and 945 deletions

View file

@ -17,7 +17,7 @@
var apiClient = ApiClient;
apiClient.fetchJSON(apiClient.getUrl('Startup/Configuration')).then(function (config) {
apiClient.getJSON(apiClient.getUrl('Startup/Configuration')).then(function (config) {
config.UICulture = $('#selectLocalizationLanguage', page).val();
@ -27,7 +27,7 @@
data: config,
url: apiClient.getUrl('Startup/Configuration')
}).done(function () {
}).then(function () {
Dashboard.navigate('wizarduser.html');
@ -57,7 +57,7 @@
var promise2 = apiClient.getJSON(apiClient.getUrl("Localization/Options"));
$.when(promise1, promise2).done(function (response1, response2) {
$.when(promise1, promise2).then(function (response1, response2) {
loadPage(page, response1[0], response2[0]);