fix DateModified not refreshing

This commit is contained in:
Luke Pulverenti 2016-07-24 12:46:17 -04:00
parent ffc1d36492
commit 049f6fed66
10 changed files with 17 additions and 36 deletions

View file

@ -1,23 +1,11 @@
define([], function () {
function getTabs() {
return [
{
href: 'about.html',
name: Globalize.translate('TabAbout')
},
{
href: 'supporterkey.html',
name: Globalize.translate('TabEmbyPremiere')
}];
}
return function (view, params) {
var self = this;
view.addEventListener('viewbeforeshow', function (e) {
LibraryMenu.setTabs('helpadmin', 0, getTabs);
var elem = view.querySelector('#appVersionNumber');
elem.innerHTML = elem.innerHTML.replace('{0}', ConnectionManager.appVersion());

View file

@ -165,6 +165,9 @@
if (isSubProfileNew) {
currentProfile.Identification = currentProfile.Identification || {};
currentProfile.Identification.Headers = currentProfile.Identification.Headers || [];
currentProfile.Identification.Headers.push(currentSubProfile);
}

View file

@ -274,7 +274,7 @@
var homeHref = window.ApiClient ? 'home.html' : 'selectserver.html?showuser=1';
html += '<a class="lnkMediaFolder sidebarLink" href="' + homeHref + '" onclick="return LibraryMenu.onLinkClicked(event, this);">';
html += '<div style="background-image:url(\'css/images/mblogoicon.png\');width:' + 28 + 'px;height:' + 28 + 'px;background-size:contain;background-repeat:no-repeat;background-position:center center;border-radius:1000px;vertical-align:middle;margin:0 1.85em 0 1.55em;display:inline-block;"></div>';
html += '<div style="background-image:url(\'css/images/mblogoicon.png\');width:' + 28 + 'px;height:' + 28 + 'px;background-size:contain;background-repeat:no-repeat;background-position:center center;border-radius:1000px;vertical-align:middle;margin:0 1.25em 0 1.55em;display:inline-block;"></div>';
html += Globalize.translate('ButtonHome');
html += '</a>';

View file

@ -125,6 +125,10 @@
serverId: ApiClient.serverInfo().Id
});
if (!hints.length) {
html = '<p style="text-align:center;margin-top:2em;">' + Globalize.translate('NoResultsFound') + '</p>';
}
var itemsContainer = searchResults;
itemsContainer.innerHTML = html;
searchResults.classList.remove('hide');

View file

@ -728,9 +728,9 @@
pageIds: [],
icon: 'insert_chart'
}, {
name: Globalize.translate('TabHelp'),
name: Globalize.translate('TabAbout'),
href: "about.html",
icon: 'help',
icon: 'info',
color: '#679C34',
divider: true,
pageIds: ['aboutPage']

View file

@ -146,18 +146,6 @@
}
};
function getTabs() {
return [
{
href: 'about.html',
name: Globalize.translate('TabAbout')
},
{
href: 'supporterkey.html',
name: Globalize.translate('TabEmbyPremiere')
}];
}
function onSupporterLinkClick(e) {
registrationServices.showPremiereInfo();
@ -178,8 +166,6 @@
}).on('pageshow', "#supporterKeyPage", function () {
LibraryMenu.setTabs('helpadmin', 1, getTabs);
var page = this;
loadUserInfo(page);
load(page);