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:
parent
e2db1dbcd4
commit
5e8d1b70c3
2 changed files with 22 additions and 8 deletions
|
@ -239,6 +239,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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">
|
<div data-role="collapsible" data-mini="true" data-collapsed="false">
|
||||||
<h3>External Id's</h3>
|
<h3>External Id's</h3>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -173,15 +173,11 @@
|
||||||
|
|
||||||
var query = {
|
var query = {
|
||||||
ParentId: id,
|
ParentId: id,
|
||||||
SortBy: 'SortName',
|
Fields: 'Settings'
|
||||||
Fields: 'MetadataSettings'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!currentUser.Configuration.DisplayMissingEpisodes) {
|
if (itemtype != "Season" && itemtype != "Series") {
|
||||||
query.IsMissing = false;
|
query.SortBy = "SortName";
|
||||||
}
|
|
||||||
if (!currentUser.Configuration.DisplayUnairedEpisodes) {
|
|
||||||
query.IsVirtualUnaired = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
|
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
|
||||||
|
@ -648,6 +644,12 @@
|
||||||
$('#fldMusicBrainzReleaseGroupId', page).hide();
|
$('#fldMusicBrainzReleaseGroupId', page).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.Type == "Series") {
|
||||||
|
$('#collapsibleSeriesDIsplaySettings', page).show();
|
||||||
|
} else {
|
||||||
|
$('#collapsibleSeriesDIsplaySettings', page).hide();
|
||||||
|
}
|
||||||
|
|
||||||
if (item.Type == "Episode") {
|
if (item.Type == "Episode") {
|
||||||
$('#collapsibleDvdEpisodeInfo', page).show();
|
$('#collapsibleDvdEpisodeInfo', page).show();
|
||||||
} else {
|
} else {
|
||||||
|
@ -805,6 +807,8 @@
|
||||||
}
|
}
|
||||||
populateInternetProviderSettings(page, item, item.LockedFields);
|
populateInternetProviderSettings(page, item, item.LockedFields);
|
||||||
|
|
||||||
|
$("#chkDisplaySpecialsInline", page).checked(item.DisplaySpecialsWithSeasons || false).checkboxradio('refresh');
|
||||||
|
|
||||||
$('#txtPath', page).val(item.Path || '');
|
$('#txtPath', page).val(item.Path || '');
|
||||||
$('#txtName', page).val(item.Name || "");
|
$('#txtName', page).val(item.Name || "");
|
||||||
$('#txtOverview', page).val(item.Overview || "");
|
$('#txtOverview', page).val(item.Overview || "");
|
||||||
|
@ -1098,6 +1102,7 @@
|
||||||
CriticRating: $('#txtCriticRating', form).val(),
|
CriticRating: $('#txtCriticRating', form).val(),
|
||||||
CriticRatingSummary: $('#txtCriticRatingSummary', form).val(),
|
CriticRatingSummary: $('#txtCriticRatingSummary', form).val(),
|
||||||
IndexNumber: $('#txtIndexNumber', form).val(),
|
IndexNumber: $('#txtIndexNumber', form).val(),
|
||||||
|
DisplaySpecialsWithSeasons: $('#chkDisplaySpecialsInline', form).checked(),
|
||||||
AbsoluteEpisodeNumber: $('#txtAbsoluteEpisodeNumber', form).val(),
|
AbsoluteEpisodeNumber: $('#txtAbsoluteEpisodeNumber', form).val(),
|
||||||
DvdEpisodeNumber: $('#txtDvdEpisodeNumber', form).val(),
|
DvdEpisodeNumber: $('#txtDvdEpisodeNumber', form).val(),
|
||||||
DvdSeasonNumber: $('#txtDvdSeasonNumber', form).val(),
|
DvdSeasonNumber: $('#txtDvdSeasonNumber', form).val(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue