Commit 6504e6fb authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_officejs: Improve ERP5 Synchronization and fix Skin for hateoas websection

parent 45c1d70b
......@@ -101,7 +101,7 @@
<key> <string>text_content</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*global window, rJS, jIO, FormData */\n
/*global window, rJS, jIO, FormData, XMLHttpRequestProgressEvent */\n
/*jslint indent: 2, maxerr: 3 */\n
(function (window, rJS, jIO) {\n
"use strict";\n
......@@ -177,14 +177,14 @@
storage = gadget.state_parameter_dict.jio_storage;\n
return storage.repair.apply(storage, arguments)\n
.push(undefined, function (error) {\n
if(error.hasOwnProperty("currentTarget") &&\n
error.currentTarget.status === 401 &&\n
gadget.state_parameter_dict.jio_storage_name === "ERP5") {\n
if (error instanceof XMLHttpRequestProgressEvent &&\n
error.currentTarget.status === 401 &&\n
gadget.state_parameter_dict.jio_storage_name === "ERP5") {\n
return {\n
redirect: {\n
page: "login"\n
}\n
};\n
redirect: {\n
page: "login"\n
}\n
};\n
}\n
throw error;\n
});\n
......@@ -327,7 +327,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>945.58667.36801.48622</string> </value>
<value> <string>945.63008.32756.3891</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -345,7 +345,7 @@
</tuple>
<state>
<tuple>
<float>1442858006.69</float>
<float>1443118127.75</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -117,7 +117,7 @@
// XX Synchonizing the whole module is too much, here is a way to start quietly\n
// Supsended until modification_date is handled for synchronization\n
+ \' AND modification_date:>="\'\n
+ today.getDate() + \'/\' + (today.getMonth() - 2) + \'/\' + today.getFullYear() + \'" \',\n
+ \'01/\' + (today.getMonth() - 2) + \'/\' + today.getFullYear() + \'" \',\n
limit: [0, 1234567890]\n
},\n
use_remote_post: true,\n
......@@ -397,7 +397,7 @@
</tuple>
<state>
<tuple>
<float>1443102632.01</float>
<float>1443192309.89</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -255,7 +255,7 @@
</item>
<item>
<key> <string>skin_selection_name</string> </key>
<value> <string>E5G</string> </value>
<value> <string>HalRestricted</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......@@ -428,7 +428,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>945.34189.48725.3874</string> </value>
<value> <string>945.58601.10119.52531</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -446,7 +446,7 @@
</tuple>
<state>
<tuple>
<float>1441966702.4</float>
<float>1443112993.68</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