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:
parent
28f378f8db
commit
f82049f935
7 changed files with 177 additions and 14 deletions
|
@ -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;
|
||||
|
|
|
@ -1827,7 +1827,7 @@ var AppInfo = {};
|
|||
});
|
||||
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
requirejs(['thirdparty/cordova/connectsdk', 'thirdparty/cordova/remotecontrols']);
|
||||
requirejs(['thirdparty/cordova/connectsdk', 'thirdparty/cordova/remotecontrols', 'scripts/registrationservices']);
|
||||
|
||||
if ($.browser.android) {
|
||||
requirejs(['thirdparty/cordova/android/immersive']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue