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 () { ...@@ -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