mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support min version
This commit is contained in:
parent
49a57849a4
commit
6e310821b1
6 changed files with 53 additions and 10 deletions
|
@ -120,4 +120,35 @@
|
|||
|
||||
};
|
||||
|
||||
$(document).on('pageshow', "#supporterKeyPage", SupporterKeyPage.onPageShow);
|
||||
$(document).on('pageshow', "#supporterKeyPage", SupporterKeyPage.onPageShow);
|
||||
|
||||
(function () {
|
||||
|
||||
function loadUserInfo(page) {
|
||||
|
||||
Dashboard.getPluginSecurityInfo().then(function (info) {
|
||||
|
||||
if (info.IsMBSupporter) {
|
||||
$('.supporterContainer', page).addClass('hide');
|
||||
} else {
|
||||
$('.supporterContainer', page).removeClass('hide');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#supporterKeyPage", function () {
|
||||
|
||||
var page = this;
|
||||
$('#supporterKeyForm').on('submit', SupporterKeyPage.updateSupporterKey);
|
||||
$('#lostKeyForm').on('submit', SupporterKeyPage.retrieveSupporterKey);
|
||||
$('#linkKeysForm').on('submit', SupporterKeyPage.linkSupporterKeys);
|
||||
|
||||
$('.benefits', page).html(Globalize.translate('HeaderSupporterBenefit', '<a href="http://emby.media/premiere" target="_blank">', '</a>'));
|
||||
|
||||
}).on('pageshow', "#supporterKeyPage", function () {
|
||||
|
||||
var page = this;
|
||||
loadUserInfo(page);
|
||||
});
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue