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