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
ae2c774a
Commit
ae2c774a
authored
May 22, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs_afs_directory] Add compatibility with getCommandUrlForList
parent
35545b63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_router_js.js
...TemplateItem/web_page_module/gadget_erp5_afs_router_js.js
+26
-0
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_router_js.xml
...emplateItem/web_page_module/gadget_erp5_afs_router_js.xml
+2
-2
No files found.
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_router_js.js
View file @
ae2c774a
...
...
@@ -16,6 +16,32 @@
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.
declareMethod
(
'
getCommandUrlForList
'
,
function
(
options_list
)
{
var
i
,
result_list
=
[],
dict
,
key
,
portal
;
for
(
i
=
0
;
i
<
options_list
.
length
;
i
+=
1
)
{
dict
=
options_list
[
i
];
// XXX better way than to extract from query like this?
if
(
dict
.
command
===
"
index
"
)
{
key
=
dict
.
options
.
jio_key
;
portal
=
dict
.
options
.
query
.
split
(
"
:
"
)[
1
].
split
(
'
"
'
)[
1
];
result_list
.
push
(
"
#/
"
+
key
+
"
?page=afs_
"
+
portal
+
"
&view=view
"
);
}
}
if
(
result_list
.
length
)
{
return
result_list
;
}
return
this
.
getDeclaredGadget
(
"
router
"
)
.
push
(
function
(
router
)
{
return
router
.
getCommandUrlForList
.
apply
(
router
,
[
options_list
]);
});
})
.
declareMethod
(
'
getCommandUrlFor
'
,
function
()
{
var
argument_list
=
arguments
,
dict
=
argument_list
[
0
],
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_router_js.xml
View file @
ae2c774a
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
4.35816.29349.45448
</string>
</value>
<value>
<string>
96
7.46163.46553.15650
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
15
14901992.66
</float>
<float>
15
26973372.8
</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