Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
0e3c0c3d
Commit
0e3c0c3d
authored
Nov 10, 2016
by
Boris Kocherov
Committed by
Boris Kocherov
Nov 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: onlyoffice make compatible with getContent api
parent
bfa7db2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_onlyoffice_view_js.js
...web_page_module/gadget_officejs_jio_onlyoffice_view_js.js
+5
-11
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_onlyoffice_view_js.xml
...eb_page_module/gadget_officejs_jio_onlyoffice_view_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_onlyoffice_view_js.js
View file @
0e3c0c3d
...
...
@@ -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
()
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_onlyoffice_view_js.xml
View file @
0e3c0c3d
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.40044.49043.1331
</string>
</value>
<value>
<string>
95
5.11939.4774.12987
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
1478
035042.25
</float>
<float>
1478
773249.86
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment