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

stub out channel mapping

This commit is contained in:
Luke Pulverenti 2016-06-08 01:24:25 -04:00
parent 36a0eb43e4
commit a2dbad16f4
21 changed files with 160 additions and 105 deletions

View file

@ -1313,29 +1313,24 @@
})(jQuery, document, window);
(function () {
pageClassOn('pageshow', "type-interior", function () {
$(document).on('pageshow', ".type-interior", function () {
var page = this;
var page = this;
Dashboard.getPluginSecurityInfo().then(function (pluginSecurityInfo) {
Dashboard.getPluginSecurityInfo().then(function (pluginSecurityInfo) {
if (!page.querySelector('.customSupporterPromotion')) {
if (!$('.customSupporterPromotion', page).length) {
$('.supporterPromotion', page).remove();
$('.supporterPromotion', page).remove();
if (!pluginSecurityInfo.IsMBSupporter && AppInfo.enableSupporterMembership) {
if (!pluginSecurityInfo.IsMBSupporter && AppInfo.enableSupporterMembership) {
var html = '<div class="supporterPromotion"><a class="clearLink" href="http://emby.media/premiere" target="_blank"><button is="emby-button" type="button" class="raised block" style="text-transform:none;background-color:#52B54B;color:#fff;"><div>' + Globalize.translate('HeaderSupportTheTeam') + '</div><div style="font-weight:normal;margin-top:5px;">' + Globalize.translate('TextEnjoyBonusFeatures') + '</div></button></a></div>';
var html = '<div class="supporterPromotionContainer"><div class="supporterPromotion"><a class="clearLink" href="http://emby.media/premiere" target="_blank"><button is="emby-button" type="button" class="raised block" style="text-transform:none;background-color:#52B54B;color:#fff;"><div>' + Globalize.translate('HeaderSupportTheTeam') + '</div><div style="font-weight:normal;margin-top:5px;">' + Globalize.translate('TextEnjoyBonusFeatures') + '</div></button></a></div></div>';
$('.content-primary', page).append(html);
}
page.querySelector('.content-primary').insertAdjacentHTML('afterbegin', html);
}
});
}
});
})();
});
});