Commit 36f83e78 authored by Roque's avatar Roque

erp5_officejs: minor code fixing

parent 28435766
......@@ -5,7 +5,7 @@ var repair = false;
"use strict";
function createStorage(gadget) {
var jio_options = {
return jIO.createJIO({
type: "replicate",
parallel_operation_attachment_amount: 10,
parallel_operation_amount: 1,
......@@ -41,8 +41,7 @@ var repair = false;
version: gadget.props.version_url,
take_installer: true
}
};
return jIO.createJIO(jio_options);
});
}
function waitForServiceWorkerActive(registration) {
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>974.21860.23292.10171</string> </value>
<value> <string>975.50798.33418.15411</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1552651381.39</float>
<float>1558706005.68</float>
<string>UTC</string>
</tuple>
</state>
......
/*global window, rJS, document */
/*global document, window, rJS */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, document) {
(function (document, window, rJS) {
"use strict";
rJS(window)
......@@ -144,4 +144,4 @@
});
});
}(window, rJS, document));
\ No newline at end of file
}(document, window, rJS));
\ No newline at end of file
......@@ -225,7 +225,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>975.46576.23122.6860</string> </value>
<value> <string>975.60837.8816.16179</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -243,7 +243,7 @@
</tuple>
<state>
<tuple>
<float>1557850628.35</float>
<float>1558706589.95</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -63,7 +63,7 @@
function processHateoasDict(raw_dict) {
var raw_fields, type, parent, field_key, field_id, return_dict = {};
return_dict.raw_dict = raw_dict;
try {
if ("_embedded" in raw_dict && "_view" in raw_dict._embedded) {
/*jslint nomen: true*/
raw_fields = raw_dict._embedded._view;
type = raw_dict._links.type.name;
......@@ -86,7 +86,7 @@
}
}
}
} catch (e) {
} else {
// raw_dict is a blob
return raw_dict;
}
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>975.57884.28211.26709</string> </value>
<value> <string>975.60870.58404.40738</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1558536806.57</float>
<float>1558708599.95</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