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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
1e197fef
Commit
1e197fef
authored
Mar 28, 2019
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Copy all visible doc if nothing is selected
parent
06f64a9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
...teItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
+11
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
View file @
1e197fef
...
...
@@ -66,12 +66,23 @@
var
action_list
=
ensureArray
(
this
.
state
.
erp5_document
.
_links
.
action_object_list_action
||
[]),
action_name
=
argument_list
[
0
],
checked_uid_list
=
argument_list
[
1
],
unchecked_uid_list
=
argument_list
[
2
],
gadget
=
this
,
extended_search
=
gadget
.
state
.
extended_search
,
view
,
i
;
if
(
action_name
===
'
copy_document_list
'
)
{
if
(
checked_uid_list
.
length
===
0
)
{
// If nothing is checked, use all unchecked values (same as xhtml style)
checked_uid_list
=
unchecked_uid_list
;
}
if
(
checked_uid_list
.
length
===
0
)
{
// XXX Queries do not correctly handle empty uid list
return
gadget
.
redirect
({
command
:
'
reload
'
});
}
console
.
log
(
'
Copying
'
,
checked_uid_list
);
return
gadget
.
setSetting
(
'
clipboard
'
,
checked_uid_list
)
.
push
(
function
()
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
View file @
1e197fef
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.425
47.505.51302
</string>
</value>
<value>
<string>
974.425
53.1221.60569
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
15537
63421.11
</float>
<float>
15537
84596.9
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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