app/assets/javascripts/try_api/application.js.coffee in try_api-0.0.14 vs app/assets/javascripts/try_api/application.js.coffee in try_api-0.0.15
- old
+ new
@@ -169,11 +169,13 @@
$http.put path, fd,
transformRequest: angular.identity
headers: headers
.success method.response_handler
.error method.response_handler
+
$scope.addParameterToForm = (form, parameter) -> # TODO implement multidimentional parameters
if parameter.type == 'array'
+ form.append 'a', 'a' # TODO sending empty array causes EOFError
$.each parameter.values, ->
value = this
$.each value, ->
subparameter = this
switch subparameter.type