mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make Height editable on TV Channels
This commit is contained in:
parent
a3552b2d07
commit
2b71524c4f
3 changed files with 15 additions and 0 deletions
|
@ -153,6 +153,7 @@ function onSubmit(e) {
|
|||
DateCreated: getDateValue(form, '#txtDateAdded', 'DateCreated'),
|
||||
EndDate: getDateValue(form, '#txtEndDate', 'EndDate'),
|
||||
ProductionYear: form.querySelector('#txtProductionYear').value,
|
||||
Height: form.querySelector('#txtHeight').value,
|
||||
AspectRatio: form.querySelector('#txtOriginalAspectRatio').value,
|
||||
Video3DFormat: form.querySelector('#select3dFormat').value,
|
||||
|
||||
|
@ -650,6 +651,12 @@ function setFieldVisibilities(context, item) {
|
|||
hideElement('#fldPlaceOfBirth');
|
||||
}
|
||||
|
||||
if (item.MediaType === 'Video' && item.Type === 'TvChannel') {
|
||||
showElement('#fldHeight');
|
||||
} else {
|
||||
hideElement('#fldHeight');
|
||||
}
|
||||
|
||||
if (item.MediaType === 'Video' && item.Type !== 'TvChannel') {
|
||||
showElement('#fldOriginalAspectRatio');
|
||||
} else {
|
||||
|
@ -828,6 +835,8 @@ function fillItemInfo(context, item, parentalRatingOptions) {
|
|||
const placeofBirth = item.ProductionLocations?.length ? item.ProductionLocations[0] : '';
|
||||
context.querySelector('#txtPlaceOfBirth').value = placeofBirth;
|
||||
|
||||
context.querySelector('#txtHeight').value = item.Height || '';
|
||||
|
||||
context.querySelector('#txtOriginalAspectRatio').value = item.AspectRatio || '';
|
||||
|
||||
context.querySelector('#selectLanguage').value = item.PreferredMetadataLanguage || '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue