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

sync updates

This commit is contained in:
Luke Pulverenti 2015-03-17 01:58:29 -04:00
parent e3091927f0
commit 3cd1cab51f
8 changed files with 87 additions and 3 deletions

View file

@ -121,3 +121,47 @@
};
$(document).on('pageshow', "#supporterKeyPage", SupporterKeyPage.onPageShow);
(function () {
function loadConnectSupporters(page) {
$('.linkSupporterKeyMessage', page).html(Globalize.translate('MessageLinkYourSupporterKey', 5));
Dashboard.suppressAjaxErrors = true;
ApiClient.ajax({
type: "GET",
url: ApiClient.getUrl('Connect/Supporters'),
dataType: "json",
error: function () {
// Don't show normal dashboard errors
},
enableGlobalAjaxListener: false
}).done(function () {
}).fail(function () {
$('.supporters', page).html('<p>' + Globalize.translate('MessageErrorLoadingSupporterInfo') + '</p>');
}).always(function () {
Dashboard.suppressAjaxErrors = false;
});
}
$(document).on('pageshow', "#supporterKeyPage", function () {
var page = this;
loadConnectSupporters(page);
});
})();