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:
parent
ee899a7332
commit
9932bc3eb5
168 changed files with 948 additions and 945 deletions
|
@ -37,7 +37,7 @@
|
|||
if (result) {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.deleteUser(id).done(function () {
|
||||
ApiClient.deleteUser(id).then(function () {
|
||||
|
||||
loadData(page);
|
||||
});
|
||||
|
@ -332,7 +332,7 @@
|
|||
|
||||
})
|
||||
|
||||
}).done(function () {
|
||||
}).then(function () {
|
||||
|
||||
loadData(page);
|
||||
|
||||
|
@ -343,17 +343,17 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.getUsers().done(function (users) {
|
||||
ApiClient.getUsers().then(function (users) {
|
||||
renderUsers(page, users);
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
|
||||
ApiClient.fetchJSON(ApiClient.getUrl('Connect/Pending')).then(function (pending) {
|
||||
ApiClient.getJSON(ApiClient.getUrl('Connect/Pending')).then(function (pending) {
|
||||
|
||||
renderPendingGuests(page, pending);
|
||||
});
|
||||
|
||||
ApiClient.fetchJSON(ApiClient.getUrl("Library/MediaFolders", { IsHidden: false })).then(function (result) {
|
||||
ApiClient.getJSON(ApiClient.getUrl("Library/MediaFolders", { IsHidden: false })).then(function (result) {
|
||||
|
||||
renderLibrarySharingList(page, result);
|
||||
});
|
||||
|
@ -363,7 +363,7 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.fetchJSON(ApiClient.getUrl("Channels", {})).then(function (channelsResult) {
|
||||
ApiClient.getJSON(ApiClient.getUrl("Channels", {})).then(function (channelsResult) {
|
||||
|
||||
var shareExcludes = $(".chkShareFolder:checked", page).get().map(function (i) {
|
||||
|
||||
|
@ -384,7 +384,7 @@
|
|||
EnableLiveTv: false
|
||||
}
|
||||
|
||||
}).done(function (result) {
|
||||
}).then(function (result) {
|
||||
|
||||
$('#popupInvite').popup('close');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue