Commit 6eee6ed2 authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_only_office] catch if onlyoffice.gadget.appcache absence

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