Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
ae3ee088
Commit
ae3ee088
authored
Jul 06, 2015
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: return field's value as array
parent
3cdab18e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multilistfield_js.xml
...tem/web_page_module/rjs_gadget_erp5_multilistfield_js.xml
+10
-7
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multilistfield_js.xml
View file @
ae3ee088
...
@@ -182,11 +182,11 @@
...
@@ -182,11 +182,11 @@
}\n
}\n
// XXX add first + last class, needs to be improved\n
// XXX add first + last class, needs to be improved\n
if (i === 0) {\n
if (i === 0) {\n
wrapper_class_string = wrapper_class_string || "";
\n
wrapper_class_string = wrapper_class_string || "";\n
wrapper_class_string += \'ui-first-child\';\n
wrapper_class_string += \'ui-first-child\';\n
}\n
}\n
if (i === translated_htmls.length - 1) {\n
if (i === translated_htmls.length - 1) {\n
wrapper_class_string = wrapper_class_string || "";
\n
wrapper_class_string = wrapper_class_string || "";\n
wrapper_class_string += \'ui-last-child\';\n
wrapper_class_string += \'ui-last-child\';\n
}\n
}\n
if (wrapper_class_string) {\n
if (wrapper_class_string) {\n
...
@@ -199,11 +199,14 @@
...
@@ -199,11 +199,14 @@
.declareMethod(\'getContent\', function () {\n
.declareMethod(\'getContent\', function () {\n
var gadget = this,\n
var gadget = this,\n
result = {},\n
result = {},\n
tmp = [],\n
selects = this.props.element.querySelectorAll(\'select\'),\n
selects = this.props.element.querySelectorAll(\'select\'),\n
i;\n
i;\n
\n
for (i = 0; i < selects.length; i += 1) {\n
for (i = 0; i < selects.length; i += 1) {\n
result[gadget.props.field_json.sub_select_key + "_" + i] = selects[i].options[selects[i].selectedIndex].value
;\n
tmp.push(selects[i].options[selects[i].selectedIndex].value)
;\n
}\n
}\n
result[gadget.props.field_json.sub_select_key] = tmp;\n
result[gadget.props.field_json.sub_input_key] = 0;\n
result[gadget.props.field_json.sub_input_key] = 0;\n
return result;\n
return result;\n
});\n
});\n
...
@@ -330,7 +333,7 @@
...
@@ -330,7 +333,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
xiaowu
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -344,7 +347,7 @@
...
@@ -344,7 +347,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
1.1091.39269.24183
</string>
</value>
<value>
<string>
94
4.12751.13272.54476
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -362,8 +365,8 @@
...
@@ -362,8 +365,8 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
24106460.96
</float>
<float>
14
36170826.41
</float>
<string>
GMT
</string>
<string>
GMT
+2
</string>
</tuple>
</tuple>
</state>
</state>
</object>
</object>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment