From 885d82d544a08625312cd2c1ea86e52f59e233b2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 12 May 2013 21:46:56 -0400 Subject: [PATCH] hide edit metadata page for now --- dashboard-ui/edititemimages.html | 2 +- dashboard-ui/scripts/Itemdetailpage.js | 12 +++++++++++- dashboard-ui/scripts/itemlistpage.js | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) 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 () {