Button: Download - support arrays

pull/389/head
Allan Jardine 6 years ago
parent 0e9fada85b
commit d44b16bf3d

@ -43,7 +43,7 @@
name = ''; name = '';
} }
if ($.isPlainObject(data)) { if ($.isPlainObject(data) || $.isArray(data)) {
$.each(data, function(idx, val) { $.each(data, function(idx, val) {
if (name === '') { if (name === '') {
flattenJson(val, idx, flattened); flattenJson(val, idx, flattened);

Loading…
Cancel
Save