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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
350906f5
Commit
350906f5
authored
Jul 20, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX erp5_web_renderjs_ui: prototype offline status
parent
134d5d27
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
...mplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
+20
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
...plateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
View file @
350906f5
...
...
@@ -902,6 +902,26 @@
gadget
.
state
.
notification_options
:
undefined
,
// Force calling main gadget render
render_timestamp
:
new
Date
().
getTime
()
})
.
push
(
undefined
,
function
(
error
)
{
if
(
!
navigator
.
onLine
)
{
return
route
(
gadget
,
'
translation_gadget
'
,
'
translate
'
,
[
'
You are offline.
'
])
.
push
(
function
(
message
)
{
return
route
(
gadget
,
"
notification
"
,
'
notify
'
,
[{
"
message
"
:
message
,
"
status
"
:
"
error
"
}]);
})
.
push
(
function
()
{
return
rJS
.
loopEventListener
(
window
,
'
online
'
,
false
,
function
backOnline
()
{
return
location
.
reload
();
});
});
}
throw
error
;
})
.
push
(
undefined
,
function
(
error
)
{
return
displayError
(
gadget
,
error
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
View file @
350906f5
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
5.60357.5039.47650
</string>
</value>
<value>
<string>
99
3.37256.4522.58726
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
16
39487214.66
</float>
<float>
16
26860658.98
</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