mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add tagline to editing interface
This commit is contained in:
parent
eab5e1812e
commit
0a3876a9b1
6 changed files with 31 additions and 6 deletions
|
@ -88,6 +88,12 @@
|
|||
$('#fldShortOverview', page).hide();
|
||||
}
|
||||
|
||||
if (item.MediaType == "Video" && item.Type != "Episode") {
|
||||
$('#fldTagline', page).show();
|
||||
} else {
|
||||
$('#fldTagline', page).hide();
|
||||
}
|
||||
|
||||
Dashboard.getCurrentUser().done(function (user) {
|
||||
|
||||
if (user.Configuration.EnableContentDeletion &&
|
||||
|
@ -458,6 +464,7 @@
|
|||
$('#txtName', page).val(item.Name || "");
|
||||
$('#txtOverview', page).val(item.Overview || "");
|
||||
$('#txtShortOverview', page).val(item.ShortOverview || "");
|
||||
$('#txtTagline', page).val((item.Taglines.length ? item.Taglines[0] : ''));
|
||||
$('#txtSortName', page).val(item.ForcedSortName || "");
|
||||
$('#txtDisplayMediaType', page).val(item.DisplayMediaType || "");
|
||||
$('#txtCommunityRating', page).val(item.CommunityRating || "");
|
||||
|
@ -918,6 +925,9 @@
|
|||
item.RunTimeTicks = seriesRuntime ? (seriesRuntime * 600000000) : null;
|
||||
}
|
||||
|
||||
var tagline = $('#txtTagline', form).val();
|
||||
item.Taglines = tagline ? [tagline] : [];
|
||||
|
||||
ApiClient.updateItem(item).done(function () {
|
||||
|
||||
Dashboard.alert('Item saved.');
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
var html = '<br/>';
|
||||
|
||||
if (index) {
|
||||
html += '<h1 class="listHeader">' + Globalize.translate('HeaderMyLibrary') + '</h1>';
|
||||
html += '<h1 class="listHeader">' + Globalize.translate('HeaderMyViews') + '</h1>';
|
||||
}
|
||||
html += '<div>';
|
||||
html += createMediaLinks({
|
||||
|
|
|
@ -298,7 +298,7 @@
|
|||
|
||||
url = ApiClient.getScaledImageUrl(state.NowPlayingItem.LogoItemId, {
|
||||
type: "Logo",
|
||||
height: 40,
|
||||
height: 42,
|
||||
tag: state.NowPlayingItem.LogoImageTag
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue