projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fd87dc
)
Fixed ajax support for multiply selects.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sat, 24 Oct 2009 19:57:31 +0000
(19:57 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sat, 24 Oct 2009 19:57:31 +0000
(19:57 +0000)
js/utils.js
patch
|
blob
|
history
diff --git
a/js/utils.js
b/js/utils.js
index 0fba1abb5cd2b79fe93407a5f8f1cc98d8e858fe..64a266d721951cd2f1752e7b73cad97dfd2cafe1 100644
(file)
--- 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