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

update live tv loading

This commit is contained in:
Luke Pulverenti 2015-05-26 13:48:05 -04:00
parent 28f378f8db
commit f82049f935
7 changed files with 177 additions and 14 deletions

View file

@ -403,10 +403,17 @@
function reloadPage(page) {
$('.guideRequiresUnlock', page).hide();
RegistrationServices.validateFeature('livetv').done(function () {
reloadPageAfterValidation(page, 1000);
}).fail(function () {
reloadPageAfterValidation(page, 3);
var limit = 5;
$('.guideRequiresUnlock', page).show();
$('.unlockText', page).html(Globalize.translate('MessageLiveTvGuideRequiresUnlock', limit));
reloadPageAfterValidation(page, limit);
});
}
@ -458,6 +465,11 @@
});
}
$('.btnUnlockGuide', page).on('click', function () {
reloadPage(page);
});
}).on('pageshowready', "#liveTvGuidePage", function () {
var page = this;