We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49fc321 commit bffbdabCopy full SHA for bffbdab
Griddly/Scripts/griddly.js
@@ -1477,7 +1477,17 @@
1477
inputs += '<input type="hidden" name="' + token.attr("name") + '" value="' + token.val() + '" />';
1478
1479
for (var key in request)
1480
- inputs += '<input name="' + key + '" value="' + request[key] + '" />';
+ {
1481
+ var value = request[key];
1482
+
1483
+ if (value.constructor === Array)
1484
1485
+ for (var i = 0; i < value.length; i++)
1486
+ inputs += '<input name="' + key + '" value="' + value[i] + '" />';
1487
+ }
1488
+ else
1489
+ inputs += '<input name="' + key + '" value="' + value + '" />';
1490
1491
1492
$("<form action=\"" + url + "\" method=\"post\">" + inputs + "</form>")
1493
.appendTo("body").submit().remove();
0 commit comments