From d8a772c0783f2cea4b5f7f6ff61b0dc3a4922803 Mon Sep 17 00:00:00 2001 From: Hetal Patel Date: Tue, 30 Jan 2018 12:17:26 -0500 Subject: [PATCH] #27 action and design --- .../main/resources/static/js/collection.js | 47 +++++ .../collections/collectionManagement.html | 4 +- .../collections/collectionsBreadCrumb.html | 97 ++------- .../views/collections/collectionsBrowser.html | 7 +- .../resources/views/collections/fileInfo.html | 10 +- .../resources/views/collections/summary.html | 188 ++++++++++++------ .../webapp/WEB-INF/applicationContext.xml | 8 +- 7 files changed, 213 insertions(+), 148 deletions(-) diff --git a/src/emc-metalnx-shared/src/main/resources/static/js/collection.js b/src/emc-metalnx-shared/src/main/resources/static/js/collection.js index 11ae65ed9..de218b2b3 100644 --- a/src/emc-metalnx-shared/src/main/resources/static/js/collection.js +++ b/src/emc-metalnx-shared/src/main/resources/static/js/collection.js @@ -133,6 +133,53 @@ function unstarPath(path){ console.log("UnstarPath() ends"); } +function positionBrowserToPath(path) { + window.location.href = '/emc-metalnx-web/collections' + path; //relative to domain +} + +function fileDownload(path){ + console.log("File Download"); + + var prepareDownloadURL = "/emc-metalnx-web/fileOperation/prepareFilesForDownload/"; + var paths = []; + paths.push(path); + ajaxEncapsulation(prepareDownloadURL, "GET", {paths: paths}, handleDownload, null); + //$("#actions button").prop("disabled", true); +} + +function deleteInfoAction(path){ + console.log("Ready for deletion"); + $("#actionmenu button").prop("disabled", true); + $('#actionsWait').show(); + + var paths = []; + paths.push(path); + var url = "/emc-metalnx-web/fileOperation/delete/"; + + ajaxEncapsulation( + url, + "POST", + {paths: paths}, + function (data) { + $("#tree-view-panel-body").html(data); + + } + ); + window.location.href = "/emc-metalnx-web/browse/home"; +} + +function editInfo(path){ + +} + +function handleDownload() { + window.location.href = "/emc-metalnx-web/fileOperation/download/"; +} + +/*function handleDownloadFailure() { + console.log(handleDownloadFailure); +} +*/ /* function ChangeUrl(title, urlVal) { diff --git a/src/emc-metalnx-shared/src/main/resources/views/collections/collectionManagement.html b/src/emc-metalnx-shared/src/main/resources/views/collections/collectionManagement.html index 49386d057..ca19ab48f 100755 --- a/src/emc-metalnx-shared/src/main/resources/views/collections/collectionManagement.html +++ b/src/emc-metalnx-shared/src/main/resources/views/collections/collectionManagement.html @@ -32,7 +32,7 @@
-

+