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

@ -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);