1
0
Fork 0
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:
Luke Pulverenti 2015-10-02 14:30:27 -04:00
parent ee8e4e5e0a
commit db4ed3c645
4 changed files with 31 additions and 15 deletions

View file

@ -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'));
}
}
});