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

lazy load scripts

This commit is contained in:
Luke Pulverenti 2015-05-22 15:16:14 -04:00
parent 7e55abc130
commit 3818349496
27 changed files with 510 additions and 443 deletions

View file

@ -1,16 +1,51 @@
window.RegistrationServices = {
(function () {
renderPluginInfo: function (page, pkg, pluginSecurityInfo) {
function validatePlayback(deferred) {
var platform = (device.platform || '').toLowerCase();
},
if (platform.indexOf('android') != -1) {
deferred.resolve();
return;
}
addRecurringFields: function (page, period) {
},
initSupporterForm: function (page) {
$('.recurringSubscriptionCancellationHelp', page).html('');
deferred.resolve();
}
};
function validateLiveTV(deferred) {
deferred.resolve();
}
window.RegistrationServices = {
renderPluginInfo: function (page, pkg, pluginSecurityInfo) {
},
addRecurringFields: function (page, period) {
},
initSupporterForm: function (page) {
$('.recurringSubscriptionCancellationHelp', page).html('');
},
validateFeature: function (name) {
var deferred = DeferredBuilder.Deferred();
if (name == 'playback') {
validatePlayback();
} else if (name == 'livetv') {
validateLiveTV();
} else {
deferred.resolve();
}
return deferred.promise();
}
};
})();