Commit a0688f9b authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_web_renderjs_ui: router's display_action is an ERP5 exclusivity

parent bcdc8758
...@@ -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 execDisplayERP5ActionCommand(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 execDisplayERP5ActionCommand(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);
......
...@@ -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>968.25647.25725.53981</string> </value> <value> <string>969.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>1529677697.42</float> <float>1535546086.48</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment