Commit 832376ee authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs] Update exporte site to follow appcache changes

parent 1903d4f2
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
take_installer: no_installer === undefined, take_installer: no_installer === undefined,
manifest: cache_file, manifest: cache_file,
origin_url: site_url, origin_url: site_url,
prefix: prefix || "" prefix: './' + (prefix || "")
} }
}, },
signature_sub_storage: { signature_sub_storage: {
......
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>vincent</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>962.52398.50512.43502</string> </value> <value> <string>963.17965.11464.64324</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -245,8 +245,8 @@ ...@@ -245,8 +245,8 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1508202105.14</float> <float>1509985032.38</float>
<string>GMT+9</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
FileSystemStorage.prototype.getAttachment = function (doc_id, attachment_id) { FileSystemStorage.prototype.getAttachment = function (doc_id, attachment_id) {
return this._sub_storage.getAttachment( return this._sub_storage.getAttachment(
this._document, this._document,
doc_id + ((attachment_id === "index.html") ? '.' + doc_id + ((attachment_id === "index.html") ?
(doc_id.endsWith("imagelib/") ? "index.html" : "") : attachment_id) (doc_id.endsWith("imagelib/") ? "index.html" : "") : attachment_id)
); );
}; };
...@@ -52,10 +52,13 @@ ...@@ -52,10 +52,13 @@
if (result.hasOwnProperty(id)) { if (result.hasOwnProperty(id)) {
last_index = id.lastIndexOf("/") + 1; last_index = id.lastIndexOf("/") + 1;
if (last_index === id.length) { if (last_index === id.length) {
if (id.startsWith('.')) {
id = id.substring(1);
}
path = id || "/"; path = id || "/";
filename = "index.html"; filename = "index.html";
} else { } else {
path = id.substring(0, last_index); path = id.substring(1, last_index);
filename = id.substring(last_index); filename = id.substring(last_index);
} }
} }
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>vincent</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.61072.50119.43246</string> </value> <value> <string>963.17970.54919.48025</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1504857724.83</float> <float>1510044429.61</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