mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update sync progress display
This commit is contained in:
parent
ee8e4e5e0a
commit
db4ed3c645
4 changed files with 31 additions and 15 deletions
|
@ -392,7 +392,20 @@
|
|||
|
||||
}
|
||||
|
||||
$(document).on('pageshow', ".syncActivityPage", function () {
|
||||
$(document).on('pageinit', ".syncActivityPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$('.btnSyncSupporter', page).on('click', function () {
|
||||
|
||||
requirejs(["scripts/registrationservices"], function () {
|
||||
RegistrationServices.validateFeature('sync').done(function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
$('.supporterPromotion .mainText', page).html(Globalize.translate('HeaderSyncRequiresSupporterMembership'));
|
||||
|
||||
}).on('pageshow', ".syncActivityPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -402,16 +415,6 @@
|
|||
$('.supporterPromotionContainer', page).hide();
|
||||
} else {
|
||||
$('.supporterPromotionContainer', page).show();
|
||||
|
||||
if (AppInfo.enableSupporterMembership) {
|
||||
$('.supporterPromotion a', page).attr('href', 'http://emby.media/premiere');
|
||||
$('.supporterPromotion .btnLearnMore', page).show();
|
||||
$('.supporterPromotion .mainText', page).html(Globalize.translate('HeaderSyncRequiresSupporterMembership'));
|
||||
} else {
|
||||
$('.supporterPromotion a', page).attr('href', '#');
|
||||
$('.supporterPromotion .btnLearnMore', page).hide();
|
||||
$('.supporterPromotion .mainText', page).html(Globalize.translate('HeaderSyncRequiresSupporterMembershipAppVersion'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue