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
Yusei Tahara
erp5
Commits
5a5323d2
Commit
5a5323d2
authored
Sep 12, 2019
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Fix listbox gadget. If select column is displayed, send only checked uids.
parent
e559ecd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
...emplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
+14
-1
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
View file @
5a5323d2
...
...
@@ -1247,7 +1247,20 @@
}
return
queue
.
push
(
function
()
{
var
all_hide_element_list
=
form_gadget
.
element
.
querySelectorAll
(
'
.hide_element
'
),
checked_uid_list
=
[],
i
;
if
(
all_hide_element_list
.
length
===
0
)
{
data
[
form_gadget
.
props
.
listbox_uid_dict
.
key
]
=
form_gadget
.
props
.
listbox_uid_dict
.
value
;
}
else
{
for
(
i
=
0
;
i
<
all_hide_element_list
.
length
;
i
+=
1
)
{
if
(
all_hide_element_list
[
i
].
checked
)
{
checked_uid_list
.
push
(
all_hide_element_list
[
i
].
getAttribute
(
"
data-uid
"
));
}
}
data
[
form_gadget
.
props
.
listbox_uid_dict
.
key
]
=
checked_uid_list
;
}
if
(
form_gadget
.
props
.
listbox_query_param_json
!==
undefined
)
{
// JSON query parameters are only sent when rendering an ERP5 Form
data
[
form_gadget
.
props
.
listbox_query_param_json
.
key
]
=
...
...
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