Commit 2e0d61a6 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui/document_scanner: keep compatibility with synchronous reload

parent 3e31e179
Pipeline #17647 failed with stage
in 0 seconds
......@@ -902,7 +902,7 @@
if (modification_dict.first_render) {
result
.push(function () {
return gadget.reload();
return gadget.reload(true);
});
}
......
......@@ -244,7 +244,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>994.65214.39462.40089</string> </value>
<value> <string>995.11501.54899.32375</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1632471712.48</float>
<float>1633093589.07</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -579,8 +579,13 @@
.allowPublicAcquisition("redirect", function redirect(param_list) {
return route(this, 'router', 'redirect', param_list);
})
.allowPublicAcquisition('reload', function reload() {
this.state.app_reload_requested = true;
.allowPublicAcquisition('reload', function reload(param_list) {
if (param_list[0] === true) {
// reload in async mode
this.state.app_reload_requested = true;
} else {
return location.reload();
}
})
.allowPublicAcquisition("getUrlParameter", function getUrlParameter(
param_list
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>994.65209.11376.49681</string> </value>
<value> <string>995.11501.24323.42837</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1632469996.87</float>
<float>1633093329.42</float>
<string>UTC</string>
</tuple>
</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