1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

added series level settings to control display of specials

This commit is contained in:
Luke Pulverenti 2013-12-10 16:26:30 -05:00
parent e2db1dbcd4
commit 5e8d1b70c3
2 changed files with 22 additions and 8 deletions

View file

@ -239,6 +239,15 @@
</div>
</div>
</div>
<div data-role="collapsible" data-mini="true" data-collapsed="false" id="collapsibleSeriesDIsplaySettings" style="display: none;">
<h3>Display Settings</h3>
<div>
<div data-role="fieldcontain">
<label for="chkDisplaySpecialsInline">Display specials within seasons they aired in.</label>
<input data-mini="true" type="checkbox" name="chkDisplaySpecialsInline" id="chkDisplaySpecialsInline" />
</div>
</div>
</div>
<div data-role="collapsible" data-mini="true" data-collapsed="false">
<h3>External Id's</h3>
<div>

View file

@ -173,15 +173,11 @@
var query = {
ParentId: id,
SortBy: 'SortName',
Fields: 'MetadataSettings'
Fields: 'Settings'
};
if (!currentUser.Configuration.DisplayMissingEpisodes) {
query.IsMissing = false;
}
if (!currentUser.Configuration.DisplayUnairedEpisodes) {
query.IsVirtualUnaired = false;
if (itemtype != "Season" && itemtype != "Series") {
query.SortBy = "SortName";
}
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
@ -648,6 +644,12 @@
$('#fldMusicBrainzReleaseGroupId', page).hide();
}
if (item.Type == "Series") {
$('#collapsibleSeriesDIsplaySettings', page).show();
} else {
$('#collapsibleSeriesDIsplaySettings', page).hide();
}
if (item.Type == "Episode") {
$('#collapsibleDvdEpisodeInfo', page).show();
} else {
@ -805,6 +807,8 @@
}
populateInternetProviderSettings(page, item, item.LockedFields);
$("#chkDisplaySpecialsInline", page).checked(item.DisplaySpecialsWithSeasons || false).checkboxradio('refresh');
$('#txtPath', page).val(item.Path || '');
$('#txtName', page).val(item.Name || "");
$('#txtOverview', page).val(item.Overview || "");
@ -1098,6 +1102,7 @@
CriticRating: $('#txtCriticRating', form).val(),
CriticRatingSummary: $('#txtCriticRatingSummary', form).val(),
IndexNumber: $('#txtIndexNumber', form).val(),
DisplaySpecialsWithSeasons: $('#chkDisplaySpecialsInline', form).checked(),
AbsoluteEpisodeNumber: $('#txtAbsoluteEpisodeNumber', form).val(),
DvdEpisodeNumber: $('#txtDvdEpisodeNumber', form).val(),
DvdSeasonNumber: $('#txtDvdSeasonNumber', form).val(),