diff --git a/Message/Response/Response.js b/Message/Response/Response.js index ee0efa8..37b3304 100644 --- a/Message/Response/Response.js +++ b/Message/Response/Response.js @@ -28,12 +28,11 @@ jsOMS.Message.Response.Response.prototype.getByIndex = function (index) { - //return this.responses[Object.keys(this.responses).sort()[index]]; - return this.responses; + return this.responses[index]; }; jsOMS.Message.Response.Response.prototype.count = function () { - return 1; + return this.responses.length; }; }(window.jsOMS = window.jsOMS || {})); \ No newline at end of file diff --git a/UI/FormManager.js b/UI/FormManager.js index d4fbf75..ed30edc 100644 --- a/UI/FormManager.js +++ b/UI/FormManager.js @@ -214,7 +214,7 @@ request.setSuccess(function (xhr) { try { - const o = JSON.parse(xhr.response), + const o = JSON.parse(xhr.response), response = new jsOMS.Message.Response.Response(o), responseLength = response.count(); let tempResponse = null,