mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove duplicated display of studios, unused parameter
This commit is contained in:
parent
ff9c697894
commit
19dea327bb
1 changed files with 3 additions and 16 deletions
|
@ -1090,7 +1090,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);
|
||||
|
@ -1110,7 +1110,7 @@ function renderDetails(page, item, apiClient, context, isStatic) {
|
|||
}
|
||||
|
||||
renderTags(page, item);
|
||||
renderSeriesAirTime(page, item, isStatic);
|
||||
renderSeriesAirTime(page, item);
|
||||
}
|
||||
|
||||
function enableScrollX() {
|
||||
|
@ -1289,7 +1289,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');
|
||||
|
@ -1308,19 +1308,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