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');
}
},

View File

@ -310,6 +310,13 @@
if (!controller) {
tabContent = view.querySelector('.pageTabContent[data-index=\'' + index + '\']');
controller = index ? new controllerFactory(view, params, tabContent) : self;
if (index == 2) {
controller.mode = 'albumartists';
} else if (index == 3) {
controller.mode = 'artists';
}
tabControllers[index] = controller;
if (controller.initTab) {

View File

@ -235,6 +235,8 @@
$('.editUserProfileForm').off('submit', onSubmit).on('submit', onSubmit);
this.querySelector('.sharingHelp').innerHTML = Globalize.translate('OptionAllowLinkSharingHelp', 30);
}).on('pagebeforeshow', "#editUserPage", function () {
var page = this;

View File

@ -316,7 +316,7 @@
"OptionAllowRemoteSharedDevices": "Allow remote control of shared devices",
"OptionAllowRemoteSharedDevicesHelp": "Dlna devices are considered shared until a user begins controlling it.",
"OptionAllowLinkSharing": "Allow social media sharing",
"OptionAllowLinkSharingHelp": "Only web pages containing media information are shared. Media files are never shared publicly. Shares are time-limited and will expire based on your server sharing settings.",
"OptionAllowLinkSharingHelp": "Only web pages containing media information are shared. Media files are never shared publicly. Shares are time-limited and will expire after {0} days.",
"HeaderSharing": "Sharing",
"HeaderRemoteControl": "Remote Control",
"OptionMissingTmdbId": "Missing Tmdb Id",

View File

@ -88,7 +88,7 @@
<div>
<br />
<paper-checkbox id="chkEnableSharing">${OptionAllowLinkSharing}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">${OptionAllowLinkSharingHelp}</div>
<div class="fieldDescription paperCheckboxFieldDescription sharingHelp"></div>
<br />
</div>
<div id="fldIsEnabled" style="margin: 1em 0 2em;">