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

add logging

This commit is contained in:
Luke Pulverenti 2016-06-29 22:38:20 -04:00
parent e8739bf7c3
commit 582ff892c7
5 changed files with 18 additions and 8 deletions

View file

@ -819,21 +819,22 @@
var imgUrl, text;
var supporterIconContainer = page.querySelector('.supporterIconContainer');
if (!AppInfo.enableSupporterMembership) {
$('.supporterIconContainer', page).remove();
supporterIconContainer.classList.add('hide');
}
else if (pluginSecurityInfo.IsMBSupporter) {
supporterIconContainer.classList.remove('hide');
imgUrl = "css/images/supporter/supporterbadge.png";
text = Globalize.translate('MessageThankYouForSupporting');
$('.supporterIconContainer', page).html('<a class="imageLink supporterIcon" href="http://emby.media/premiere" target="_blank" title="' + text + '"><img src="' + imgUrl + '" style="height:32px;vertical-align: middle; margin-right: .5em;" /></a><span style="position:relative;top:2px;text-decoration:none;">' + text + '</span>');
supporterIconContainer.innerHTML = '<a class="imageLink supporterIcon" href="http://emby.media/premiere" target="_blank" title="' + text + '"><img src="' + imgUrl + '" style="height:32px;vertical-align: middle; margin-right: .5em;" /></a><span style="position:relative;top:2px;text-decoration:none;">' + text + '</span>';
} else {
imgUrl = "css/images/supporter/nonsupporterbadge.png";
text = Globalize.translate('MessagePleaseSupportProject');
$('.supporterIconContainer', page).html('<a class="imageLink supporterIcon" href="http://emby.media/premiere" target="_blank" title="' + text + '"><img src="' + imgUrl + '" style="height:32px;vertical-align: middle; margin-right: .5em;" /><span style="position:relative;top:2px;text-decoration:none;">' + text + '</span></a>');
supporterIconContainer.classList.add('hide');
}
},