Merge pull request #4351 from 1337joe/deduplicate-studio-display
Remove duplicated display of studios
This commit is contained in:
commit
dbdc3ce1fb
1 changed files with 3 additions and 16 deletions
|
@ -1063,7 +1063,7 @@ function renderTagline(page, item) {
|
|||
}
|
||||
}
|
||||
|
||||
function renderDetails(page, item, apiClient, context, isStatic) {
|
||||
function renderDetails(page, item, apiClient, context) {
|
||||
renderSimilarItems(page, item, context);
|
||||
renderMoreFromSeason(page, item, apiClient);
|
||||
renderMoreFromArtist(page, item, apiClient);
|
||||
|
@ -1083,7 +1083,7 @@ function renderDetails(page, item, apiClient, context, isStatic) {
|
|||
}
|
||||
|
||||
renderTags(page, item);
|
||||
renderSeriesAirTime(page, item, isStatic);
|
||||
renderSeriesAirTime(page, item);
|
||||
}
|
||||
|
||||
function enableScrollX() {
|
||||
|
@ -1262,7 +1262,7 @@ function renderSimilarItems(page, item, context) {
|
|||
}
|
||||
}
|
||||
|
||||
function renderSeriesAirTime(page, item, isStatic) {
|
||||
function renderSeriesAirTime(page, item) {
|
||||
const seriesAirTime = page.querySelector('#seriesAirTime');
|
||||
if (item.Type != 'Series') {
|
||||
seriesAirTime.classList.add('hide');
|
||||
|
@ -1281,19 +1281,6 @@ function renderSeriesAirTime(page, item, isStatic) {
|
|||
if (item.AirTime) {
|
||||
html += ' at ' + item.AirTime;
|
||||
}
|
||||
if (item.Studios.length) {
|
||||
if (isStatic) {
|
||||
html += ' on ' + escapeHtml(item.Studios[0].Name);
|
||||
} else {
|
||||
const context = inferContext(item);
|
||||
const href = appRouter.getRouteUrl(item.Studios[0], {
|
||||
context: context,
|
||||
itemType: 'Studio',
|
||||
serverId: item.ServerId
|
||||
});
|
||||
html += ' on <a class="textlink button-link" is="emby-linkbutton" href="' + href + '">' + escapeHtml(item.Studios[0].Name) + '</a>';
|
||||
}
|
||||
}
|
||||
if (html) {
|
||||
html = (item.Status == 'Ended' ? 'Aired ' : 'Airs ') + html;
|
||||
seriesAirTime.innerHTML = html;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue