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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
a4e63da9
Commit
a4e63da9
authored
Oct 08, 2019
by
Roque
Committed by
Roque
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_ooffice: enable readonly view for non-only-office documents
parent
20f0dae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
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
+15
-17
No files found.
bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_common/only_office_document_view.js.js
View file @
a4e63da9
...
...
@@ -119,28 +119,26 @@
name_list
.
push
(
view_gadget
.
state
.
mime_type
);
content_dict
.
filename
=
name_list
.
join
(
'
.
'
);
}
return
gadget
.
getSetting
(
"
content_type
"
);
})
.
push
(
function
(
content_type
)
{
content_dict
.
content_type
=
content_type
;
return
child_gadget
.
submitContent
(
child_gadget
.
state
.
jio_key
,
undefined
,
content_dict
);
})
.
push
(
function
()
{
return
gadget
.
jio_putAttachment
(
child_gadget
.
state
.
jio_key
,
'
data
'
,
jIO
.
util
.
dataURItoBlob
(
data
))
.
push
(
function
()
{
return
gadget
.
declareGadget
(
"
gadget_ojs_cloudooo.html
"
);
})
.
push
(
function
(
cloudooo
)
{
return
cloudooo
.
putAllCloudoooConvertionOperation
({
format
:
view_gadget
.
state
.
mime_type
,
jio_key
:
child_gadget
.
state
.
jio_key
});
});
if
(
view_gadget
.
state
.
content_editable
)
{
return
gadget
.
jio_putAttachment
(
child_gadget
.
state
.
jio_key
,
'
data
'
,
jIO
.
util
.
dataURItoBlob
(
data
))
.
push
(
function
()
{
return
gadget
.
declareGadget
(
"
gadget_ojs_cloudooo.html
"
);
})
.
push
(
function
(
cloudooo
)
{
return
cloudooo
.
putAllCloudoooConvertionOperation
({
format
:
view_gadget
.
state
.
mime_type
,
jio_key
:
child_gadget
.
state
.
jio_key
});
});
}
},
function
(
error
)
{
console
.
log
(
error
);
return
gadget
.
notifySubmitted
({
...
...
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