Fix function and const usage

This commit is contained in:
Dennis Eichhorn 2016-03-25 17:03:08 +01:00
parent 20774d5355
commit e89cb9da52

View File

@ -94,7 +94,7 @@
self = this;
request.setData(form.getData());
request.setType('json');
request.setType(jsOMS.EnumResponseType.JSON);
request.setUri(form.getAction());
request.setMethod(form.getMethod());
request.setRequestHeader('Content-Type', 'application/json');
@ -109,7 +109,7 @@
/* Handle responses (can be multiple response object) */
for (let k = 0; k < responseLength; k++) {
tempResponse = response.get(k);
tempResponse = response.getByIndex(k);
console.log(tempResponse);
if(typeof (success = form.getSuccess()) !== 'undefined') {