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
Levin Zimmermann
erp5
Commits
0009986c
Commit
0009986c
authored
Aug 29, 2018
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: router's display_action is an ERP5 exclusivity
parent
1d6baccd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.js
...TemplateItem/web_page_module/rjs_gadget_erp5_router_js.js
+6
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
...emplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.js
View file @
0009986c
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
// Display the latest state stored for a jio document
// Display the latest state stored for a jio document
COMMAND_DISPLAY_STORED_STATE
=
"
display_stored_state
"
,
COMMAND_DISPLAY_STORED_STATE
=
"
display_stored_state
"
,
// Display an action on the jio document,
// Display an action on the jio document,
COMMAND_DISPLAY_
ACTION
=
"
display
_action
"
,
COMMAND_DISPLAY_
ERP5_ACTION
=
"
display_erp5
_action
"
,
// Display the current jio document, but change some URL parameters
// Display the current jio document, but change some URL parameters
COMMAND_CHANGE_STATE
=
"
change
"
,
COMMAND_CHANGE_STATE
=
"
change
"
,
// Like change, but also store the current jio document display state
// Like change, but also store the current jio document display state
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
VALID_URL_COMMAND_DICT
[
COMMAND_KEEP_HISTORY_AND_DISPLAY_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_KEEP_HISTORY_AND_DISPLAY_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_DISPLAY_STORED_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_DISPLAY_STORED_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_CHANGE_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_CHANGE_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_DISPLAY_ACTION
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_DISPLAY_
ERP5_
ACTION
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_STORE_AND_CHANGE_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_STORE_AND_CHANGE_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_STORE_AND_DISPLAY_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_STORE_AND_DISPLAY_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_INDEX_STATE
]
=
null
;
VALID_URL_COMMAND_DICT
[
COMMAND_INDEX_STATE
]
=
null
;
...
@@ -379,10 +379,10 @@
...
@@ -379,10 +379,10 @@
);
);
}
}
function
execDisplayActionCommand
(
gadget
,
options
)
{
function
execDisplay
ERP5
ActionCommand
(
gadget
,
options
)
{
return
gadget
.
jio_getAttachment
(
options
.
jio_key
,
'
links
'
)
return
gadget
.
jio_getAttachment
(
options
.
jio_key
,
'
links
'
)
.
push
(
function
(
document_view
)
{
.
push
(
function
(
document_view
)
{
var
i
,
j
,
action
,
action_data
,
action_url
;
var
action
,
action_data
,
action_url
,
i
,
j
;
for
(
i
=
0
;
i
<
Object
.
keys
(
document_view
.
_links
).
length
;
i
=
i
+
1
)
{
for
(
i
=
0
;
i
<
Object
.
keys
(
document_view
.
_links
).
length
;
i
=
i
+
1
)
{
action
=
Object
.
keys
(
document_view
.
_links
)[
i
];
action
=
Object
.
keys
(
document_view
.
_links
)[
i
];
...
@@ -845,8 +845,8 @@
...
@@ -845,8 +845,8 @@
if
(
command_options
.
path
===
COMMAND_CHANGE_STATE
)
{
if
(
command_options
.
path
===
COMMAND_CHANGE_STATE
)
{
return
execChangeCommand
(
previous_options
,
next_options
,
drop_options
);
return
execChangeCommand
(
previous_options
,
next_options
,
drop_options
);
}
}
if
(
command_options
.
path
===
COMMAND_DISPLAY_ACTION
)
{
if
(
command_options
.
path
===
COMMAND_DISPLAY_
ERP5_
ACTION
)
{
return
execDisplayActionCommand
(
gadget
,
next_options
);
return
execDisplay
ERP5
ActionCommand
(
gadget
,
next_options
);
}
}
if
(
command_options
.
path
===
COMMAND_STORE_AND_CHANGE_STATE
)
{
if
(
command_options
.
path
===
COMMAND_STORE_AND_CHANGE_STATE
)
{
return
execStoreAndChangeCommand
(
gadget
,
previous_options
,
next_options
,
drop_options
);
return
execStoreAndChangeCommand
(
gadget
,
previous_options
,
next_options
,
drop_options
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
View file @
0009986c
...
@@ -218,7 +218,7 @@
...
@@ -218,7 +218,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
nicolas
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -232,7 +232,7 @@
...
@@ -232,7 +232,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
8.25647.25725.53981
</string>
</value>
<value>
<string>
96
9.59308.31395.61354
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
29677697.42
</float>
<float>
15
35546086.48
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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