mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
defer path creation when possible
This commit is contained in:
parent
2c631573d6
commit
6d403c9b29
1 changed files with 11 additions and 5 deletions
|
@ -331,10 +331,10 @@
|
|||
return;
|
||||
}
|
||||
|
||||
var html = item.Status == 'Ended' ? 'Aired' : 'Airs';
|
||||
var html = '';
|
||||
|
||||
if (item.AirDays && item.AirDays.length) {
|
||||
html += item.AirDays.length == 7 ? 'daily' : ' ' + item.AirDays.map(function (a) {
|
||||
html += item.AirDays.length == 7 ? 'daily' : item.AirDays.map(function (a) {
|
||||
return a + "s";
|
||||
|
||||
}).join(',');
|
||||
|
@ -348,7 +348,13 @@
|
|||
html += ' at ' + item.AirTime;
|
||||
}
|
||||
|
||||
$('#seriesAirTime', page).show().html(html).trigger('create');
|
||||
if (html) {
|
||||
html = (item.Status == 'Ended' ? 'Aired ' : 'Airs ') + html;
|
||||
|
||||
$('#seriesAirTime', page).show().html(html).trigger('create');
|
||||
} else {
|
||||
$('#seriesAirTime', page).hide();
|
||||
}
|
||||
}
|
||||
|
||||
function renderTags(page, item) {
|
||||
|
@ -855,10 +861,10 @@
|
|||
$('#btnRemote', page).on('click', function () {
|
||||
|
||||
RemoteControl.showMenu({
|
||||
|
||||
|
||||
item: currentItem,
|
||||
context: getContext(currentItem),
|
||||
|
||||
|
||||
themeSongs: $('#themeSongsCollapsible:visible', page).length > 0,
|
||||
|
||||
themeVideos: $('#themeVideosCollapsible:visible', page).length > 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue