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

restore changes

This commit is contained in:
Luke Pulverenti 2015-11-30 12:35:37 -05:00
parent c8cb56ee09
commit 2432c58839
3 changed files with 502 additions and 502 deletions

View file

@ -168,11 +168,15 @@
Dashboard.alert({
message: Globalize.translate('HeaderSyncRequiresSupporterMembership') + '<br/><p><a href="http://emby.media/premiere" target="_blank">' + Globalize.translate('ButtonLearnMore') + '</a></p>',
title: Globalize.translate('HeaderSync')
title: Globalize.translate('HeaderSync'),
callback: function () {
deferred.reject();
}
});
}, function () {
deferred.reject();
Dashboard.hideLoadingMsg();
Dashboard.alert({
@ -234,7 +238,12 @@
var url = "http://mb3admin.com/admin/service/user/getPayPalEmail?id=" + pkg.owner;
$.getJSON(url).done(function (dev) {
fetch(url, { mode: 'no-cors' }).then(function (response) {
return response.json();
}).then(function (dev) {
if (dev.payPalEmail) {
$('#payPalEmail', page).val(dev.payPalEmail);

File diff suppressed because it is too large Load diff

View file

@ -68,7 +68,7 @@
type: "DELETE",
url: linkUrl
}).done(function () {
}).then(function () {
Dashboard.alert({
@ -78,7 +78,7 @@
callback: actionCallback
});
}).fail(function () {
}, function () {
Dashboard.alert({
@ -99,7 +99,7 @@
},
dataType: 'json'
}).done(function (result) {
}).then(function (result) {
var msgKey = result.IsPending ? 'MessagePendingEmbyAccountAdded' : 'MessageEmbyAccountAdded';
@ -110,7 +110,8 @@
callback: actionCallback
});
}).fail(function () {
}, function () {
Dashboard.alert({
@ -169,9 +170,9 @@
user.Policy.EnableSyncTranscoding = $('#chkEnableSyncTranscoding', page).checked();
user.Policy.EnablePublicSharing = $('#chkEnableSharing', page).checked();
ApiClient.updateUser(user).done(function () {
ApiClient.updateUser(user).then(function () {
ApiClient.updateUserPolicy(user.Id, user.Policy).done(function () {
ApiClient.updateUserPolicy(user.Id, user.Policy).then(function () {
onSaveComplete(page, user);
});
@ -183,7 +184,7 @@
Dashboard.showLoadingMsg();
getUser().done(function (result) {
getUser().then(function (result) {
saveUser(result, page);
});
@ -202,7 +203,7 @@
Dashboard.showLoadingMsg();
getUser().done(function (user) {
getUser().then(function (user) {
loadUser(page, user);
});