Commit 0c1e24fb authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs] Update storage configurator, replace development/ by app/

parent 61f1419a
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
.declareService(function () { .declareService(function () {
var gadget = this; var gadget = this;
return gadget.getSetting("global_setting_gadget_url", "officejs_setting_gadget/development/") return gadget.getSetting("global_setting_gadget_url", "officejs_setting_gadget/app/")
.push(function (global_setting_gadget_url) { .push(function (global_setting_gadget_url) {
return gadget.declareGadget(global_setting_gadget_url, { return gadget.declareGadget(global_setting_gadget_url, {
"scope": "global_setting_gadget", "scope": "global_setting_gadget",
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.6001.38865.21538</string> </value> <value> <string>961.10686.10882.5973</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1501665906.31</float> <float>1502107775.92</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -10,14 +10,14 @@ ...@@ -10,14 +10,14 @@
.push(function () { .push(function () {
return RSVP.all([ return RSVP.all([
gadget.getSetting("portal_type", "Web Page"), gadget.getSetting("portal_type", "Web Page"),
gadget.getSetting("erp5_attachment_synchro", undefined), gadget.getSetting("erp5_attachment_synchro", ""),
gadget.getSetting("default_view_reference", 'jio_view') gadget.getSetting("default_view_reference", 'jio_view')
]); ]);
}) })
.push(function (result) { .push(function (result) {
var configuration = {}, var configuration = {},
portal_type = result[0], portal_type = result[0],
attachment_synchro = result[1] !== undefined, attachment_synchro = result[1] !== "",
extended_attachment_url = result[1]; extended_attachment_url = result[1];
configuration = { configuration = {
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
conflict_handling: 1, conflict_handling: 1,
parallel_operation_attachment_amount: 10, parallel_operation_attachment_amount: 10,
parallel_operation_amount: 10, parallel_operation_amount: 10,
signature_hash_key: 'modification_date',
check_local_attachment_modification: attachment_synchro, check_local_attachment_modification: attachment_synchro,
check_local_attachment_creation: attachment_synchro, check_local_attachment_creation: attachment_synchro,
check_remote_attachment_modification: attachment_synchro, check_remote_attachment_modification: attachment_synchro,
...@@ -50,7 +49,7 @@ ...@@ -50,7 +49,7 @@
type: "uuid", type: "uuid",
sub_storage: { sub_storage: {
type: "indexeddb", type: "indexeddb",
database: "officejs-hash" database: "officejs-erp5-hash"
} }
} }
}, },
...@@ -89,13 +88,6 @@ ...@@ -89,13 +88,6 @@
} }
} }
}; };
// This is only for onlyoffice
if (extended_attachment_url === "/{+id}/Document_downloadForOnlyOfficeApp") {
configuration = {
type: "fix_local",
sub_storage: configuration
};
}
return gadget.setSetting('jio_storage_description', configuration); return gadget.setSetting('jio_storage_description', configuration);
}) })
.push(function () { .push(function () {
...@@ -182,7 +174,7 @@ ...@@ -182,7 +174,7 @@
.declareService(function () { .declareService(function () {
var gadget = this; var gadget = this;
return gadget.getSetting("global_setting_gadget_url", "officejs_setting_gadget/development/") return gadget.getSetting("global_setting_gadget_url", "../officejs_setting_gadget/app/")
.push(function (global_setting_gadget_url) { .push(function (global_setting_gadget_url) {
return gadget.declareGadget(global_setting_gadget_url, { return gadget.declareGadget(global_setting_gadget_url, {
"scope": "global_setting_gadget", "scope": "global_setting_gadget",
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.8948.57765.64853</string> </value> <value> <string>961.22099.5660.20138</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1501674974.42</float> <float>1502460802.37</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