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
...@@ -335,17 +335,26 @@ DocsAPI.DocEditor.version = function () { ...@@ -335,17 +335,26 @@ DocsAPI.DocEditor.version = function () {
} }
} }
}) })
.push(function () {
return new RSVP.Queue()
.push(function () { .push(function () {
return jIO.util.ajax({ return jIO.util.ajax({
type: "GET", type: "GET",
url: "onlyoffice.gadget.appcache" 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