diff --git a/WebContent/html/webpages/returnPage.jsp b/WebContent/html/webpages/returnPage.jsp index 6ea32a8..65eaa02 100644 --- a/WebContent/html/webpages/returnPage.jsp +++ b/WebContent/html/webpages/returnPage.jsp @@ -261,14 +261,14 @@ function hidePopup(){ //Turns array to string, which can be submitted on the form when actually returning //The string will contain the ID's of devices to be returned, and this will be sent to the database! function arrayToString(array){ - var sb = "[" + var sb = "["; for(var i = 0; i < array.length; i++){ //get the return id, go to that index in queried devices, and get that id! sb+= devices[array[i]].id; if(i != array.length-1) - sb+="," + sb+=","; } - sb+="]" + sb+="]"; return sb; }