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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
bb95152c
Commit
bb95152c
authored
Jan 05, 2016
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Router: add a reload command to force redisplaying the current page
parent
949965f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
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
+15
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
View file @
bb95152c
...
...
@@ -129,6 +129,7 @@
COMMAND_DISPLAY_STATE = "display",\n
COMMAND_LOGIN = "login",\n
COMMAND_RAW = "raw",\n
COMMAND_RELOAD = "reload",\n
COMMAND_DISPLAY_STORED_STATE = "display_stored_state",\n
COMMAND_CHANGE_STATE = "change",\n
COMMAND_STORE_AND_CHANGE_STATE = "store_and_change",\n
...
...
@@ -150,6 +151,7 @@
VALID_URL_COMMAND_DICT[COMMAND_PUSH_HISTORY] = null;\n
VALID_URL_COMMAND_DICT[COMMAND_LOGIN] = null;\n
VALID_URL_COMMAND_DICT[COMMAND_RAW] = null;\n
VALID_URL_COMMAND_DICT[COMMAND_RELOAD] = null;\n
\n
\n
function endsWith(str, suffix) {\n
...
...
@@ -595,6 +597,14 @@
return execDisplayCommand(gadget, previous_options);\n
});\n
}\n
\n
function execReloadCommand(previous_options) {\n
var jio_key = previous_options.jio_key;\n
delete previous_options.jio_key;\n
return synchronousChangeState(\n
getDisplayUrlFor(jio_key, previous_options)\n
);\n
}\n
\n
//////////////////////////////////////////////////////////////////\n
// Command URL functions\n
...
...
@@ -729,6 +739,9 @@
if (command_options.path === COMMAND_LOGIN) {\n
return execLoginCommand(gadget, previous_options, next_options);\n
}\n
if (command_options.path === COMMAND_RELOAD) {\n
return execReloadCommand(previous_options);\n
}\n
throw new Error(\'Unsupported command \' + command_options.path);\n
\n
}\n
...
...
@@ -1046,7 +1059,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
7.43761.4655.1297
</string>
</value>
<value>
<string>
94
8.17471.24428.20411
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -1064,7 +1077,7 @@
</tuple>
<state>
<tuple>
<float>
14
49754197.93
</float>
<float>
14
52009629.86
</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