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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
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 @@
...
@@ -119,28 +119,26 @@
name_list
.
push
(
view_gadget
.
state
.
mime_type
);
name_list
.
push
(
view_gadget
.
state
.
mime_type
);
content_dict
.
filename
=
name_list
.
join
(
'
.
'
);
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
(
return
child_gadget
.
submitContent
(
child_gadget
.
state
.
jio_key
,
undefined
,
content_dict
child_gadget
.
state
.
jio_key
,
undefined
,
content_dict
);
);
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
if
(
view_gadget
.
state
.
content_editable
)
{
.
jio_putAttachment
(
child_gadget
.
state
.
jio_key
,
'
data
'
,
return
gadget
jIO
.
util
.
dataURItoBlob
(
data
))
.
jio_putAttachment
(
child_gadget
.
state
.
jio_key
,
'
data
'
,
.
push
(
function
()
{
jIO
.
util
.
dataURItoBlob
(
data
))
return
gadget
.
declareGadget
(
"
gadget_ojs_cloudooo.html
"
);
.
push
(
function
()
{
})
return
gadget
.
declareGadget
(
"
gadget_ojs_cloudooo.html
"
);
.
push
(
function
(
cloudooo
)
{
})
return
cloudooo
.
push
(
function
(
cloudooo
)
{
.
putAllCloudoooConvertionOperation
({
return
cloudooo
format
:
view_gadget
.
state
.
mime_type
,
.
putAllCloudoooConvertionOperation
({
jio_key
:
child_gadget
.
state
.
jio_key
format
:
view_gadget
.
state
.
mime_type
,
});
jio_key
:
child_gadget
.
state
.
jio_key
});
});
});
}
},
function
(
error
)
{
},
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
return
gadget
.
notifySubmitted
({
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