From 12aba8d6c76b53b221b3bcf9eeffe3ab40f3e767 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 24 Oct 2009 19:57:31 +0000 Subject: [PATCH] Fixed ajax support for multiply selects. --- js/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2