Commit 0220fabc authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs] Add redirection when storage can't be create in ojs jio gadget

parent 1ac0a29c
...@@ -70,7 +70,11 @@ ...@@ -70,7 +70,11 @@
if (jio_options === undefined) { if (jio_options === undefined) {
return; return;
} }
this.state_parameter_dict.jio_storage = jIO.createJIO(jio_options); try {
this.state_parameter_dict.jio_storage = jIO.createJIO(jio_options);
} catch (error) {
this.state_parameter_dict.jio_storage = undefined;
}
return this.getSetting("jio_storage_name") return this.getSetting("jio_storage_name")
.push(function (jio_storage_name) { .push(function (jio_storage_name) {
gadget.state_parameter_dict.jio_storage_name = jio_storage_name; gadget.state_parameter_dict.jio_storage_name = jio_storage_name;
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.7450.32421.358</string> </value> <value> <string>962.14325.54663.48878</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1501576382.69</float> <float>1505921031.1</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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