From d44b16bf3d85a0a4d7ce56016b54e89ce45fa3af Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 19 Jul 2018 21:53:48 +0100 Subject: [PATCH] Button: Download - support arrays --- buttons/button.download.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buttons/button.download.js b/buttons/button.download.js index 7d3534e..36de995 100644 --- a/buttons/button.download.js +++ b/buttons/button.download.js @@ -43,7 +43,7 @@ name = ''; } - if ($.isPlainObject(data)) { + if ($.isPlainObject(data) || $.isArray(data)) { $.each(data, function(idx, val) { if (name === '') { flattenJson(val, idx, flattened);