Commit 3a09693f authored by Marcel's avatar Marcel
Browse files

Implement downloads.

parent bda52dd4
......@@ -146,8 +146,6 @@ var FileBaseActions = Class.extend({
remove: function(data) {
var _this = this;
this.entries = this.owner.selections.entries;
console.log("remove");
console.log(this.entries);
$.each(this.entries, function(path, node) {
console.log(path);
$.ajax({
......@@ -170,8 +168,13 @@ var FileBaseActions = Class.extend({
},
download: function(data) {
console.log(data);
console.log("download");
var path = this.abspath(data);
$('<iframe />')
.attr({
src: this.owner.urlFormatter("fs/getfile/?path="+path+"&rnd="+Math.random()*Math.random()+"&_wid="+Vispa.workspaceManager.getWorkspace().id+'&download=1'),
style: "display:none;"
}).appendTo('body');
return this;
},
compress: function(data) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment