Commit 2fffadc2 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] update jIO

Add support to property array in erp5storage (like listbox_uid:list)
parent 0cb802dc
......@@ -8002,12 +8002,19 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
.push(function (evt) {\n
var form_data = JSON.parse(evt.target.result),\n
data = new FormData(),\n
i,\n
key;\n
for (key in form_data) {\n
if (form_data.hasOwnProperty(key)) {\n
if (Array.isArray(form_data[key])) {\n
for (i = 0; i < form_data[key].length; i += 1) {\n
data.append(key, form_data[key][i]);\n
}\n
} else {\n
data.append(key, form_data[key]);\n
}\n
}\n
}\n
return jIO.util.ajax({\n
"type": "POST",\n
"url": name,\n
......@@ -9252,7 +9259,7 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>942.40553.20339.32529</string> </value>
<value> <string>943.12409.47687.33177</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -9270,7 +9277,7 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
</tuple>
<state>
<tuple>
<float>1430410922.96</float>
<float>1432304271.29</float>
<string>GMT</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment