mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
sync updates
This commit is contained in:
parent
e3091927f0
commit
3cd1cab51f
8 changed files with 87 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue