1
0
Fork 0
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:
Luke Pulverenti 2013-06-04 12:48:23 -04:00
parent 2c631573d6
commit 6d403c9b29

View file

@ -331,10 +331,10 @@
return; return;
} }
var html = item.Status == 'Ended' ? 'Aired' : 'Airs'; var html = '';
if (item.AirDays && item.AirDays.length) { 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"; return a + "s";
}).join(','); }).join(',');
@ -348,7 +348,13 @@
html += ' at ' + item.AirTime; 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) { function renderTags(page, item) {
@ -855,10 +861,10 @@
$('#btnRemote', page).on('click', function () { $('#btnRemote', page).on('click', function () {
RemoteControl.showMenu({ RemoteControl.showMenu({
item: currentItem, item: currentItem,
context: getContext(currentItem), context: getContext(currentItem),
themeSongs: $('#themeSongsCollapsible:visible', page).length > 0, themeSongs: $('#themeSongsCollapsible:visible', page).length > 0,
themeVideos: $('#themeVideosCollapsible:visible', page).length > 0 themeVideos: $('#themeVideosCollapsible:visible', page).length > 0