Skip to content
Snippets Groups Projects
Commit a1f853b2 authored by pkupczyk's avatar pkupczyk
Browse files

SP-224 / BIS-143: Expose session workspace to Custom Web UI:

- added downloadSessionWorkspaceFile to JSON API

SVN: 26348
parent ff23357d
No related branches found
No related tags found
No related merge requests found
...@@ -350,6 +350,14 @@ openbis.prototype.createSessionWorkspaceDownloadLink = function(filePath, linkTe ...@@ -350,6 +350,14 @@ openbis.prototype.createSessionWorkspaceDownloadLink = function(filePath, linkTe
return $("<a href='" + this.createSessionWorkspaceDownloadUrl(filePath) + "'>" + (linkText ? linkText : filePath) + "</a>"); return $("<a href='" + this.createSessionWorkspaceDownloadUrl(filePath) + "'>" + (linkText ? linkText : filePath) + "</a>");
} }
openbis.prototype.downloadSessionWorkspaceFile = function(filePath, action) {
$.ajax({
type: "GET",
url: this.createSessionWorkspaceDownloadUrl(filePath),
success: action
});
}
openbis.prototype.deleteSessionWorkspaceFile = function(filePath, action) { openbis.prototype.deleteSessionWorkspaceFile = function(filePath, action) {
ajaxRequest({ ajaxRequest({
url: this.dssApiUrl, url: this.dssApiUrl,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment