Commit 32e4f543 authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs] Reinstall on all error without test

parent 47439792
......@@ -47,7 +47,6 @@ var repair = false;
.ready(function (gadget) {
var i,
state = {},
sub_gadget_list = [],
element_list =
gadget.element.querySelectorAll('[data-install-configuration]');
window.Bootloader = gadget;
......@@ -131,6 +130,7 @@ sub gadget does not have all aquired Method at this point*/
return this.declareGadget(url,
{
"element": element,
"scope": url,
"sandbox": "iframe"
})
.push(function (sub_gadget) {
......@@ -151,9 +151,9 @@ sub gadget does not have all aquired Method at this point*/
return storage.repair();
})
.push(undefined, function (error) {
if (gadget.state.retry !== undefined) {
return gadget.changeState({
retry: gadget.state.retry += 1,
retry: gadget.state.retry !== undefined ?
gadget.state.retry + 1 : 0,
error: error
})
.push(function () {
......@@ -162,8 +162,6 @@ sub gadget does not have all aquired Method at this point*/
.push(function () {
return gadget.install();
});
}
throw error;
});
});
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.10581.61261.18995</string> </value>
<value> <string>961.18937.8958.57907</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1501763880.35</float>
<float>1502265428.13</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