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