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
2b7749b2
Commit
2b7749b2
authored
Apr 15, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] use xmla_client in iframe
parent
a8eaacb2
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 @
2b7749b2
...
@@ -72,5 +72,8 @@
...
@@ -72,5 +72,8 @@
<div
id=
"viewport"
></div>
<div
id=
"viewport"
></div>
<div
data-gadget-url=
"onlyoffice/xmla_client.html"
data-gadget-scope=
"xmla_client"
data-gadget-sandbox=
"iframe"
></div>
</body>
</body>
</html>
</html>
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
View file @
2b7749b2
...
@@ -657,10 +657,10 @@ DocsAPI.DocEditor.version = function () {
...
@@ -657,10 +657,10 @@ DocsAPI.DocEditor.version = function () {
return
loadScript
(
app_url
);
return
loadScript
(
app_url
);
})
})
.
push
(
function
()
{
.
push
(
function
()
{
// declare public gadgets only after configure requirejs
return
g
.
getDeclaredGadget
(
"
xmla_client
"
);
// public because xmla_client return not serialized data
})
return
g
.
declareGadget
(
'
onlyoffice/xmla_client.html
'
,
.
push
(
function
(
xmla_client
)
{
{
scope
:
'
xmla_client
'
,
sandbox
:
"
public
"
}
);
return
xmla_client
.
render
(
);
})
})
.
push
(
undefined
,
function
(
error
)
{
.
push
(
undefined
,
function
(
error
)
{
display_error
(
g
,
error
);
display_error
(
g
,
error
);
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
View file @
2b7749b2
...
@@ -147,6 +147,9 @@
...
@@ -147,6 +147,9 @@
cache
:
{},
cache
:
{},
connections
:
{}
connections
:
{}
};
};
})
.
declareMethod
(
"
render
"
,
function
()
{
var
g
=
this
;
return
g
.
getRemoteSettings
()
return
g
.
getRemoteSettings
()
.
push
(
function
(
settings
)
{
.
push
(
function
(
settings
)
{
return
g
.
setConnectionsSettings
(
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