Commit 643774c3 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_only_office] Decrease speed on onlyoffice gadget

Workaround renderjs speed improvement.
parent af2751d5
......@@ -173,35 +173,38 @@ DocsAPI.DocEditor.version = function () {
.declareMethod('appReady', function () {
var g = this;
console.log('appReady');
g.props.handlers.init({
config: {
lang: 'en',
canAutosave: false,
canCoAuthoring: false,
canBackToFolder: true,
canCreateNew: false,
canAnalytics: false,
customization: {
autosave: false,
about: false,
feedback: false
}
}
});
g.props.handlers.opendocument({
doc: {
key: g.props.jio_key,
//title: g.props.doc.title || "",
//fileType: undefined,
//vkey: undefined,
url: "_offline_",
permissions: {
edit: true,
download: true,
reader: true
}
}
});
return new RSVP.Queue()
.push(function () {
g.props.handlers.init({
config: {
lang: 'en',
canAutosave: false,
canCoAuthoring: false,
canBackToFolder: true,
canCreateNew: false,
canAnalytics: false,
customization: {
autosave: false,
about: false,
feedback: false
}
}
});
g.props.handlers.opendocument({
doc: {
key: g.props.jio_key,
//title: g.props.doc.title || "",
//fileType: undefined,
//vkey: undefined,
url: "_offline_",
permissions: {
edit: true,
download: true,
reader: true
}
}
});
});
})
.declareMethod('documentReady', function () {
console.log();
......
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