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
|
@ -16,18 +16,18 @@
|
|||
registrationInfo = null;
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.getJSON(ApiClient.getUrl('LiveTv/Registration', {
|
||||
ApiClient.fetchJSON(ApiClient.getUrl('LiveTv/Registration', {
|
||||
|
||||
ProgramId: programId,
|
||||
Feature: 'seriesrecordings'
|
||||
})).done(function (result) {
|
||||
})).then(function (result) {
|
||||
|
||||
lastRegId = programId;
|
||||
registrationInfo = result;
|
||||
deferred.resolveWith(null, [registrationInfo]);
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
}).fail(function () {
|
||||
}, function () {
|
||||
|
||||
deferred.resolveWith(null, [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue