Commit 0e3c0c3d authored by Boris Kocherov's avatar Boris Kocherov Committed by Boris Kocherov

erp5_officejs: onlyoffice make compatible with getContent api

parent bfa7db2e
......@@ -4,8 +4,8 @@
"use strict";
function this_func_link(name) {
return function () {
return this[name].apply(this, arguments[0]);
return function (opt) {
return this[name].apply(this, opt);
};
}
......@@ -106,15 +106,7 @@
.declareAcquiredMethod('getSetting', 'getSetting')
.allowPublicAcquisition("getSetting", this_func_link("getSetting"))
.declareAcquiredMethod("jio_get", "jio_get")
.allowPublicAcquisition("jio_get", this_func_link("jio_get"))
.declareAcquiredMethod("jio_put", "jio_put")
.allowPublicAcquisition("jio_put", this_func_link("jio_put"))
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.allowPublicAcquisition("jio_getAttachment",
this_func_link("jio_getAttachment"))
.declareAcquiredMethod("jio_putAttachment", "jio_putAttachment")
.allowPublicAcquisition("jio_putAttachment",
this_func_link("jio_putAttachment"))
.allowPublicAcquisition('setFillStyle', function () {
return setFillStyle(this);
......@@ -200,7 +192,9 @@
})
.push(function (text_content_gadget) {
return text_content_gadget.render({
"jio_key": gadget.options.jio_key
//"jio_key": gadget.options.jio_key
"key": 'text_content',
"value": gadget.options.doc.data
});
})
.push(function () {
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>954.40044.49043.1331</string> </value>
<value> <string>955.11939.4774.12987</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1478035042.25</float>
<float>1478773249.86</float>
<string>UTC</string>
</tuple>
</state>
......
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