(js) Fix download of exported folders under iOS

Whenever possible, we no longer rely on the FileSaver.js library to
download zip archives. Instead, we do a simple GET on the resource by
changing the window location.
This commit is contained in:
Francis Lachapelle committed 2018-05-16 16:46:29 -04:00
1 parent 0c5b5446dd
commit c966ad60e7
5 files changed
+23 -6

No files matched your search

@@ -723,7 +723,12 @@
data = { uids: _.map(selectedCards, 'id') };
}
return AddressBook.$$resource.download(this.id, 'export', data, options);
if (data) {
return AddressBook.$$resource.download(this.id, 'export', data, options);
}
else {
return AddressBook.$$resource.open(this.id, 'export', data, options);
}
};
/**