Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
f03ab8a6
Commit
f03ab8a6
authored
Jul 02, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_ooffice: ooffice view handles doc metadata
parent
e6f788f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_common/only_office_document_view.js.js
...skins/erp5_ooffice_common/only_office_document_view.js.js
+18
-3
No files found.
bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_common/only_office_document_view.js.js
View file @
f03ab8a6
...
...
@@ -11,6 +11,8 @@
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
"
notifySubmitted
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_put
"
)
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
)
...
...
@@ -119,9 +121,16 @@
name_list
.
push
(
view_gadget
.
state
.
mime_type
);
content_dict
.
filename
=
name_list
.
join
(
'
.
'
);
}
return
child_gadget
.
submitContent
(
child_gadget
.
state
.
jio_key
,
undefined
,
content_dict
);
return
gadget
.
jio_get
(
child_gadget
.
state
.
jio_key
);
})
.
push
(
function
(
doc
)
{
var
property
;
for
(
property
in
content_dict
)
{
if
(
content_dict
.
hasOwnProperty
(
property
))
{
doc
[
property
]
=
content_dict
[
property
];
}
}
return
gadget
.
jio_put
(
child_gadget
.
state
.
jio_key
,
doc
);
})
.
push
(
function
()
{
if
(
view_gadget
.
state
.
content_editable
)
{
...
...
@@ -137,6 +146,12 @@
format
:
view_gadget
.
state
.
mime_type
,
jio_key
:
child_gadget
.
state
.
jio_key
});
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
"
Data Updated
"
,
status
:
"
success
"
});
});
}
},
function
(
error
)
{
...
...
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