diff --git a/dashboard-ui/edititemimages.html b/dashboard-ui/edititemimages.html index 44d855fc87..856b2a64ed 100644 --- a/dashboard-ui/edititemimages.html +++ b/dashboard-ui/edititemimages.html @@ -5,7 +5,7 @@
-
+
@@ -13,7 +13,7 @@


diff --git a/dashboard-ui/edititemmetadata.html b/dashboard-ui/edititemmetadata.html index 6aff243854..9ad6be57cc 100644 --- a/dashboard-ui/edititemmetadata.html +++ b/dashboard-ui/edititemmetadata.html @@ -5,12 +5,12 @@
+
-

-

-

+


Metadata diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 680153600a..cd101b7dd6 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -84,7 +84,7 @@ Studios
-
+
diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 92705d44b5..a12e1d31d0 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -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 () { diff --git a/dashboard-ui/scripts/edititemmetadata.js b/dashboard-ui/scripts/edititemmetadata.js index ea4b708e2c..55f47b9862 100644 --- a/dashboard-ui/scripts/edititemmetadata.js +++ b/dashboard-ui/scripts/edititemmetadata.js @@ -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'); diff --git a/dashboard-ui/scripts/itemlistpage.js b/dashboard-ui/scripts/itemlistpage.js index 2685b7c4f0..0ac60d6941 100644 --- a/dashboard-ui/scripts/itemlistpage.js +++ b/dashboard-ui/scripts/itemlistpage.js @@ -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 () {