mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add logging
This commit is contained in:
parent
e8739bf7c3
commit
582ff892c7
@ -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');
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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",
|
||||
|
@ -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;">
|
||||
|
Loading…
Reference in New Issue
Block a user