mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
restore edit metatdata page
This commit is contained in:
parent
9138a2f0a7
commit
9a7000e5bb
6 changed files with 16 additions and 14 deletions
|
@ -5,7 +5,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="editItemImagesPage" data-role="page" class="page libraryPage" data-theme="a">
|
||||
<div class="ui-bar-c parentName">
|
||||
<div class="ui-bar-c parentName" style="display: none;">
|
||||
</div>
|
||||
<div data-role="content">
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
<h1 class="itemName detailPageName"></h1>
|
||||
<br />
|
||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||
<!-- <a href="#" data-role="button" onclick="Dashboard.navigate('edititemmetadata.html', true);">Metadata</a>-->
|
||||
<a href="#" data-role="button" onclick="Dashboard.navigate('edititemmetadata.html', true);">Metadata</a>
|
||||
<a href="#" data-role="button" class="ui-btn-active">Images</a>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="editItemMetadataPage" data-role="page" class="page libraryPage" data-theme="a">
|
||||
<div class="ui-bar-c parentName" style="display: none;">
|
||||
</div>
|
||||
<div data-role="content">
|
||||
|
||||
<div class="ehsContent">
|
||||
<h1 id="grandParentName" class="detailPageName hide"></h1>
|
||||
<h1 id="parentName" class="detailPageName hide"></h1>
|
||||
<h1 id="itemName" class="detailPageName"></h1>
|
||||
<h1 class="itemName detailPageName"></h1>
|
||||
<br />
|
||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||
<a href="#" data-role="button" class="ui-btn-active">Metadata</a>
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
<a href="gamestudios.html">Studios</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-bar-c parentName">
|
||||
<div class="ui-bar-c parentName" style="display: none;">
|
||||
</div>
|
||||
<div id="itemBackdrop" class="itemBackdrop noBackdrop">
|
||||
<div class="itemBackdropContent">
|
||||
|
|
|
@ -851,7 +851,7 @@
|
|||
|
||||
$('#btnEdit', page).on('click', function () {
|
||||
|
||||
Dashboard.navigate("edititemimages.html?id=" + currentItem.Id);
|
||||
Dashboard.navigate("edititemmetadata.html?id=" + currentItem.Id);
|
||||
});
|
||||
|
||||
}).on('pageshow', "#itemDetailPage", function () {
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
|
||||
currentItem = item;
|
||||
|
||||
LibraryBrowser.renderTitle(item, $('#itemName', page), $('#parentName', page), $('#grandParentName', page), true);
|
||||
LibraryBrowser.renderName(item, $('.itemName', page), true);
|
||||
LibraryBrowser.renderParentName(item, $('.parentName', page));
|
||||
|
||||
setFieldVisibilities(page, item);
|
||||
fillItemInfo(page, item);
|
||||
|
@ -22,6 +23,7 @@
|
|||
}
|
||||
|
||||
function setFieldVisibilities(page, item) {
|
||||
|
||||
if (item.Type == "Series" || item.Type == "Person") {
|
||||
$('#fldEndDate', page).show();
|
||||
} else {
|
||||
|
@ -83,20 +85,20 @@
|
|||
ApiClient.getCultures().done(function (result) {
|
||||
|
||||
var select = $('#selectLanguage', page);
|
||||
|
||||
|
||||
populateLanguages(result, select);
|
||||
|
||||
select.val(item.Language || "").selectmenu('refresh');
|
||||
});
|
||||
|
||||
ApiClient.getParentalRatings().done(function (result) {
|
||||
|
||||
|
||||
var select = $('#selectOfficialRating', page);
|
||||
|
||||
populateRatings(result, select);
|
||||
|
||||
select.val(item.OfficialRating || "").selectmenu('refresh');
|
||||
|
||||
|
||||
select = $('#selectCustomRating', page);
|
||||
|
||||
populateRatings(result, select);
|
||||
|
@ -193,11 +195,11 @@
|
|||
|
||||
select.html(html).selectmenu("refresh");
|
||||
}
|
||||
|
||||
|
||||
function editItemMetadataPage() {
|
||||
var self = this;
|
||||
|
||||
self.onSubmit = function() {
|
||||
self.onSubmit = function () {
|
||||
|
||||
Dashboard.alert('coming soon');
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
|
||||
$('#btnEdit', page).on('click', function () {
|
||||
|
||||
Dashboard.navigate("edititemimages.html?id=" + query.ParentId);
|
||||
Dashboard.navigate("edititemmetadata.html?id=" + query.ParentId);
|
||||
});
|
||||
|
||||
}).on('pageshow', "#itemListPage", function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue