Commit 10128055 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Eteri

erp5_officejs: workaround to have a functionnal dropbox storage on fast device

// XXX Please note this is a work-around to have a usable application
// waiting for a bug in IndexedDB or jIO to be fixed
// this bug can been seen on 'fast' devices where
// data stored in settings is not accessible right after save.
// it was shown that after redirecting to sync page, the
// "sync_reload" value got in the sync gadget was "undefined"
// Hence triggering synchronization and not setting the storage first
// and redirecting once again on the jio configuration page
parent 3b77415e
...@@ -79,6 +79,17 @@ ...@@ -79,6 +79,17 @@
.push(function () { .push(function () {
return gadget.setSetting('sync_reload', true); return gadget.setSetting('sync_reload', true);
}) })
.push(function () {
// XXX Please note this is a work-around to have a usable application
// waiting for a bug in IndexedDB or jIO to be fixed
// this bug can been seen on 'fast' devices where
// data stored in settings is not accessible right after save.
// it was shown that after redirecting to sync page, the
// "sync_reload" value got in the sync gadget was "undefined"
// Hence triggering synchronization and not setting the storage first
// and redirecting once again on the jio configuration page
return gadget.getSetting('sync_reload');
})
.push(function () { .push(function () {
return gadget.redirect({page: 'sync', auto_repair: 'true'}); return gadget.redirect({page: 'sync', auto_repair: 'true'});
}); });
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>960.64347.25493.60518</string> </value> <value> <string>960.64356.12053.23552</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>1501057664.67</float> <float>1501058446.69</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