mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
add OriginalTitle to metadata editor
This commit is contained in:
parent
672fd6a864
commit
c0956ac97f
@ -122,6 +122,7 @@
|
||||
var item = {
|
||||
Id: currentItem.Id,
|
||||
Name: $('#txtName', form).val(),
|
||||
OriginalTitle: $('#txtOriginalName', form).val(),
|
||||
ForcedSortName: $('#txtSortName', form).val(),
|
||||
DisplayMediaType: $('#txtDisplayMediaType', form).val(),
|
||||
CommunityRating: $('#txtCommunityRating', form).val(),
|
||||
@ -297,7 +298,7 @@
|
||||
callback: function (id) {
|
||||
|
||||
if (id) {
|
||||
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
// For now this is a hack
|
||||
setTimeout(function () {
|
||||
@ -592,6 +593,12 @@
|
||||
$('#fldPath', context).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Series" || item.Type == "Movie" || item.Type == "Trailer") {
|
||||
$('#fldOriginalName', context).show();
|
||||
} else {
|
||||
$('#fldOriginalName', context).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Series") {
|
||||
$('#fldSeriesRuntime', context).show();
|
||||
} else {
|
||||
@ -878,6 +885,7 @@
|
||||
|
||||
$('#txtPath', context).val(item.Path || '');
|
||||
$('#txtName', context).val(item.Name || "");
|
||||
$('#txtOriginalName', context).val(item.OriginalTitle || "");
|
||||
context.querySelector('#txtOverview').value = item.Overview || '';
|
||||
$('#txtShortOverview', context).val(item.ShortOverview || "");
|
||||
$('#txtTagline', context).val((item.Taglines && item.Taglines.length ? item.Taglines[0] : ''));
|
||||
|
@ -24,10 +24,13 @@
|
||||
<paper-input id="txtPath" type="text" label="${LabelPath}" readonly></paper-input>
|
||||
</div>
|
||||
<div>
|
||||
<paper-input id="txtName" type="text" label="${LabelName}" required="required"></paper-input>
|
||||
<paper-input id="txtName" type="text" label="${LabelTitle}" required="required"></paper-input>
|
||||
</div>
|
||||
<div id="fldOriginalName">
|
||||
<paper-input id="txtOriginalName" type="text" label="${LabelOriginalTitle}" required="required"></paper-input>
|
||||
</div>
|
||||
<div id="fldSortName" style="display: none;">
|
||||
<paper-input id="txtSortName" type="text" label="${LabelSortName}"></paper-input>
|
||||
<paper-input id="txtSortName" type="text" label="${LabelSortTitle}"></paper-input>
|
||||
</div>
|
||||
<div id="fldDateAdded" style="display: none;">
|
||||
<paper-input id="txtDateAdded" type="date" label="${LabelDateAdded}"></paper-input>
|
||||
|
@ -2339,5 +2339,8 @@
|
||||
"MarkUnplayed": "Mark unplayed",
|
||||
"Yesterday": "Yesterday",
|
||||
"DownloadImagesInAdvanceWarning": "Downloading all images in advance will result in longer library scan times.",
|
||||
"MetadataSettingChangeHelp": "Changing metadata settings will affect new content that is added going forward. To refresh existing content, open the detail screen and click the refresh button, or perform bulk refreshes using the metadata manager."
|
||||
"MetadataSettingChangeHelp": "Changing metadata settings will affect new content that is added going forward. To refresh existing content, open the detail screen and click the refresh button, or perform bulk refreshes using the metadata manager.",
|
||||
"LabelTitle": "Title:",
|
||||
"LabelOriginalTitle": "Original title:",
|
||||
"LabelSortTitle": "Sort title:"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user