Commit 8e4bd96e authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] catch if onlyoffice.gadget.appcache absence

parent 4edfa1cd
......@@ -335,17 +335,26 @@ DocsAPI.DocEditor.version = function () {
}
}
})
.push(function () {
return new RSVP.Queue()
.push(function () {
return jIO.util.ajax({
type: "GET",
url: "onlyoffice.gadget.appcache"
});
})
.push(undefined, function (error) {
return;
});
})
.push(function (response) {
/*configure requeryjs for rename
view and edit to view_folder and edit_folder
in dependencies
*/
if (!response) {
return;
}
var text = response.target.responseText,
relative_url_list = text.split('\r\n'),
i,
......
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