diff --git a/dashboard-ui/edititemimages.html b/dashboard-ui/edititemimages.html index dec41454a2..e0458e34f1 100644 --- a/dashboard-ui/edititemimages.html +++ b/dashboard-ui/edititemimages.html @@ -13,7 +13,7 @@


- Metadata + Images
diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index dcc248aa55..35a42699fb 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -1,6 +1,16 @@ (function ($, document, LibraryBrowser, window) { var currentItem; + var sessionsPromise; + + function getSessionsPromise() { + + if (sessionsPromise == null) { + sessionsPromise = ApiClient.getSessions(); + } + + return sessionsPromise; + } function reload(page) { @@ -725,7 +735,7 @@ $('#btnEdit', page).on('click', function () { - Dashboard.navigate("edititemmetadata.html?id=" + currentItem.Id); + Dashboard.navigate("edititemimages.html?id=" + currentItem.Id); }); }).on('pageshow', "#itemDetailPage", function () { diff --git a/dashboard-ui/scripts/itemlistpage.js b/dashboard-ui/scripts/itemlistpage.js index 99ed09b82e..6d7fa9ab84 100644 --- a/dashboard-ui/scripts/itemlistpage.js +++ b/dashboard-ui/scripts/itemlistpage.js @@ -138,7 +138,7 @@ $('#btnEdit', page).on('click', function () { - Dashboard.navigate("edititemmetadata.html?id=" + query.ParentId); + Dashboard.navigate("edititemimages.html?id=" + query.ParentId); }); }).on('pageshow', "#itemListPage", function () {