Commit 68170b7b authored by Roque's avatar Roque

erp5_officejs: clean up after test fix

parent c795940d
......@@ -229,7 +229,6 @@ gadget_officejs_discussion_tool_router.html\n
/\n
app/\n
gadget_officejs_discussion_tool.configuration\n
#app/gadget_officejs_discussion_tool.configuration\n
gadget_officejs_discussion_tool.json\n
gadget_officejs_bootloader.js\n
gadget_officejs_bootloader_presentation.html\n
......@@ -734,7 +733,7 @@ NETWORK:\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>974.30099.13229.45585</string> </value>
<value> <string>974.31239.34087.42410</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -752,7 +751,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>1553084611.2</float>
<float>1553089034.71</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -10,8 +10,6 @@
this._take_installer = spec.take_installer || false;
this._origin_url = spec.origin_url !== undefined ?
spec.origin_url : window.location.href;
console.log("[DEBUG] APPCACHESTORAGE window.location.href:");
console.log(window.location.href);
this._version = spec.version || "";
this._prefix = spec.prefix || "./";
this._documents = {};
......@@ -50,7 +48,6 @@
AppCacheStorage.prototype.getAttachment = function (origin_url,
relative_url) {
console.log("[DEBUG] APPCACHESTORAGE: getAttachment for" + relative_url);
return new RSVP.Queue()
.push(function () {
return jIO.util.ajax({
......@@ -65,11 +62,6 @@
};
AppCacheStorage.prototype.allAttachments = function (id) {
console.log("[DEBUG] APPCACHESTORAGE allAttachments");
console.log("[DEBUG] APPCACHESTORAGE this._origin_url");
console.log(this._origin_url);
console.log("[DEBUG] APPCACHESTORAGE parameter id");
console.log(id);
if (id === this._origin_url) {
var result = {}, i, len = this._relative_url_list.length;
for (i = 0; i < len; i += 1) {
......@@ -95,21 +87,17 @@
};
AppCacheStorage.prototype.repair = function () {
console.log("[DEBUG] APPCACHESTORAGE repair");
var storage = this, url = "";
return new RSVP.Queue()
.push(function () {
url = new URL(storage._manifest, new URL(storage._version,
storage._origin_url))
console.log("[DEBUG] APPCACHESTORAGE JIO.util.ajax to url: " + url);
storage._origin_url));
return jIO.util.ajax({
type: "GET",
url: url
});
})
.push(function (response) {
console.log("[DEBUG] APPCACHESTORAGE ajax response:");
console.log(response);
var text = response.target.responseText,
relative_url_list = text.split('\n'),
i,
......@@ -133,21 +121,10 @@
take = true;
}
}
console.log("[DEBUG] APPCACHESTORAGE end url-iteration. storage._relative_url_list:");
console.log(storage._relative_url_list);
})
.push(undefined, function (error) {
if (!error.message) {
console.log("error getting the manifest:");
console.log(error);
var info = " . ";
if (error.currentTarget) {
info += "status: " + error.currentTarget.status;
info += " . response: " + error.currentTarget.response;
} else {
info += "error.currentTarget: " + error.currentTarget;
}
error.message = "Can't get manifest. URL: " + url + info;
error.message = "Can't get manifest. URL: " + url;
}
throw error;
});
......
......@@ -237,7 +237,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>974.31277.33067.51916</string> </value>
<value> <string>974.31314.47298.63044</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -255,7 +255,7 @@
</tuple>
<state>
<tuple>
<float>1553086893.39</float>
<float>1553089133.43</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -75,7 +75,6 @@
.declareMethod('createJio', function (jio_options) {
var gadget = this,
//origin_url = window.location.protocol + "//" + window.location.hostname + window.location.pathname,
origin_url = window.location.href,
prefix = "./",
hateoas_script = "hateoas/ERP5Document_getHateoas",
......@@ -104,16 +103,11 @@
local_sub_storage: {},
remote_sub_storage: {
type: "appcache",
manifest: manifest/*,
origin_url: origin_url*/
manifest: manifest
}
}, appcache_storage,
sync_flag = "appcache-stored",
configuration_ids_dict = {};
console.log("[DEBUG] JIO GADGET window.location.href:");
console.log(window.location.href);
console.log("[DEBUG] JIO GADGET generated origin_url:");
console.log(origin_url);
if (jio_options === undefined) {
return;
}
......
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1553086979.81</float>
<float>1553089225.04</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