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 @@
+ diff --git a/src/emc-metalnx-web/src/main/webapp/WEB-INF/applicationContext.xml b/src/emc-metalnx-web/src/main/webapp/WEB-INF/applicationContext.xml index c55f014f0..e402c2797 100755 --- a/src/emc-metalnx-web/src/main/webapp/WEB-INF/applicationContext.xml +++ b/src/emc-metalnx-web/src/main/webapp/WEB-INF/applicationContext.xml @@ -31,8 +31,8 @@