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