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

run all ajax through apiclient

This commit is contained in:
Luke Pulverenti 2014-07-02 01:16:59 -04:00
parent 683e6f472c
commit db0a6eb632
28 changed files with 55 additions and 46 deletions

View file

@ -27,8 +27,8 @@
var promise1 = ApiClient.getUsers();
var promise2 = ApiClient.getServerConfiguration();
var promise3 = $.getJSON(ApiClient.getUrl("Notifications/Types"));
var promise4 = $.getJSON(ApiClient.getUrl("Notifications/Services"));
var promise3 = ApiClient.getJSON(ApiClient.getUrl("Notifications/Types"));
var promise4 = ApiClient.getJSON(ApiClient.getUrl("Notifications/Services"));
$.when(promise1, promise2, promise3, promise4).done(function (response1, response2, response3, response4) {
@ -98,7 +98,7 @@
var type = getParameterByName('type');
var promise1 = ApiClient.getServerConfiguration();
var promise2 = $.getJSON(ApiClient.getUrl("Notifications/Types"));
var promise2 = ApiClient.getJSON(ApiClient.getUrl("Notifications/Types"));
$.when(promise1, promise2).done(function (response1, response2) {