Browser: Implement multiple object delete (#3859)

This commit is contained in:
Rushan
2017-03-07 05:13:43 +05:30
committed by Harshavardhana
parent e49efcb9d9
commit 966818955e
4 changed files with 68 additions and 19 deletions

View File

@@ -412,13 +412,14 @@ export const setLoginError = () => {
}
}
export const downloadAllasZip = (url, req, xhr) => {
export const downloadSelected = (url, req, xhr) => {
return (dispatch) => {
xhr.open('POST', url, true)
xhr.responseType = 'blob'
xhr.onload = function(e) {
if (this.status == 200) {
dispatch(checkedObjectsReset())
var blob = new Blob([this.response], {
type: 'application/zip'
})