From: Janusz Dobrowolski Date: Sat, 24 Oct 2009 19:57:31 +0000 (+0000) Subject: Fixed ajax support for multiply selects. X-Git-Tag: v2.4.2~19^2~1077 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=12aba8d6c76b53b221b3bcf9eeffe3ab40f3e767;p=fa-stable.git Fixed ajax support for multiply selects. --- diff --git a/js/utils.js b/js/utils.js index 0fba1abb..64a266d7 100644 --- a/js/utils.js +++ b/js/utils.js @@ -184,10 +184,13 @@ JsHttpRequest._request = function(trigger, form, tout, retry) { { if(el.type=='select-multiple') { + name = name.substr(0,name.length-2); + q[name] = new Array; for (var j = 0; j < el.length; j++) { + s = name.substring(0, name.length-2); if (el.options[j].selected == true) - q[name] = el.options[j].value; + q[name].push(el.options[j].value); } } else