Commit 705f5c59 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Fixed file delete post parameters to be of type application/x-www-form-urlencoded

parent 8d75c779
......@@ -44,7 +44,6 @@ var QfqNS = QfqNS || {};
url: this.targetUrl,
type: 'POST',
data: data,
processData: false,
cache: false
})
.done(this.ajaxSuccessHandler.bind(this, event.target))
......@@ -58,9 +57,10 @@ var QfqNS = QfqNS || {};
var fileDeleteName = htmlButton.getAttribute('name');
var data = new FormData();
data.append('s', this.sip);
data.append('name', fileDeleteName);
var data = {
s: this.sip,
name: fileDeleteName
};
return 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