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
|
@ -4,7 +4,7 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ConnectionManager.connectToServer(server).done(function (result) {
|
||||
ConnectionManager.connectToServer(server).then(function (result) {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
|
@ -127,12 +127,12 @@
|
|||
Dashboard.showModalLoadingMsg();
|
||||
|
||||
// Add/Update connect info
|
||||
ConnectionManager.acceptServer(id).done(function () {
|
||||
ConnectionManager.acceptServer(id).then(function () {
|
||||
|
||||
Dashboard.hideModalLoadingMsg();
|
||||
loadPage(page);
|
||||
|
||||
}).fail(function () {
|
||||
}, function () {
|
||||
|
||||
showGeneralError();
|
||||
});
|
||||
|
@ -143,13 +143,13 @@
|
|||
Dashboard.showModalLoadingMsg();
|
||||
|
||||
// Add/Update connect info
|
||||
ConnectionManager.deleteServer(serverId).done(function () {
|
||||
ConnectionManager.deleteServer(serverId).then(function () {
|
||||
|
||||
Dashboard.hideModalLoadingMsg();
|
||||
|
||||
loadPage(page);
|
||||
|
||||
}).fail(function () {
|
||||
}, function () {
|
||||
|
||||
showGeneralError();
|
||||
|
||||
|
@ -161,13 +161,13 @@
|
|||
Dashboard.showModalLoadingMsg();
|
||||
|
||||
// Add/Update connect info
|
||||
ConnectionManager.rejectServer(id).done(function () {
|
||||
ConnectionManager.rejectServer(id).then(function () {
|
||||
|
||||
Dashboard.hideModalLoadingMsg();
|
||||
|
||||
loadPage(page);
|
||||
|
||||
}).fail(function () {
|
||||
}, function () {
|
||||
|
||||
showGeneralError();
|
||||
|
||||
|
@ -297,7 +297,7 @@
|
|||
|
||||
if (ConnectionManager.isLoggedIntoConnect()) {
|
||||
|
||||
ConnectionManager.getUserInvitations().done(function (list) {
|
||||
ConnectionManager.getUserInvitations().then(function (list) {
|
||||
|
||||
renderInvitations(page, list);
|
||||
|
||||
|
@ -314,7 +314,7 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ConnectionManager.getAvailableServers().done(function (servers) {
|
||||
ConnectionManager.getAvailableServers().then(function (servers) {
|
||||
|
||||
servers = servers.slice(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue