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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
0bc4f5a5
Commit
0bc4f5a5
authored
Apr 15, 2019
by
Boris Kocherov
Committed by
Romain Courteaud
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] use xmla_client in iframe
parent
a7e4d054
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.html.html
...portal_skins/erp5_only_office/onlyoffice.gadget.html.html
+3
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
...tem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
+4
-4
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
...ortal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
+3
-0
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.html.html
View file @
0bc4f5a5
...
...
@@ -72,5 +72,8 @@
<div
id=
"viewport"
></div>
<div
data-gadget-url=
"onlyoffice/xmla_client.html"
data-gadget-scope=
"xmla_client"
data-gadget-sandbox=
"iframe"
></div>
</body>
</html>
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
View file @
0bc4f5a5
...
...
@@ -657,10 +657,10 @@ DocsAPI.DocEditor.version = function () {
return
loadScript
(
app_url
);
})
.
push
(
function
()
{
// declare public gadgets only after configure requirejs
// public because xmla_client return not serialized data
return
g
.
declareGadget
(
'
onlyoffice/xmla_client.html
'
,
{
scope
:
'
xmla_client
'
,
sandbox
:
"
public
"
}
);
return
g
.
getDeclaredGadget
(
"
xmla_client
"
);
})
.
push
(
function
(
xmla_client
)
{
return
xmla_client
.
render
(
);
})
.
push
(
undefined
,
function
(
error
)
{
display_error
(
g
,
error
);
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
View file @
0bc4f5a5
...
...
@@ -147,6 +147,9 @@
cache
:
{},
connections
:
{}
};
})
.
declareMethod
(
"
render
"
,
function
()
{
var
g
=
this
;
return
g
.
getRemoteSettings
()
.
push
(
function
(
settings
)
{
return
g
.
setConnectionsSettings
(
settings
);
...
...
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