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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
1e690572
Commit
1e690572
authored
3 years ago
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX erp5_web_renderjs_ui: offline support
parent
bb5acf75
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
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
+14
-6
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 @
1e690572
...
...
@@ -899,16 +899,24 @@
.
push
(
undefined
,
function
(
error
)
{
// couscous
if
(
!
navigator
.
onLine
)
{
window
.
addEventListener
(
'
online
'
,
function
backOnline
()
{
return
location
.
reload
();
});
return
;
console
.
log
(
'
not online
'
);
return
gadget
.
changeState
({
error_text
:
'
Offline
'
,
// request_error_text: request_error_text,
url
:
undefined
})
.
push
(
function
()
{
return
rJS
.
loopEventListener
(
window
,
'
online
'
,
false
,
function
backOnline
()
{
console
.
log
(
'
let reload
'
);
return
gadget
.
render
(
route_result
,
keep_message
);
// return location.reload();
});
});
}
throw
error
;
})
.
push
(
undefined
,
function
(
error
)
{
return
displayError
(
gadget
,
error
);
});
})
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
View file @
1e690572
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
993.36
084.15186.27323
</string>
</value>
<value>
<string>
993.36
177.33163.46728
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
162679
0595.7
9
</float>
<float>
162679
6612.6
9
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
This diff is collapsed.
Click to expand it.
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