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
1
Issues
1
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
Roque
erp5
Commits
b02d9658
Commit
b02d9658
authored
Oct 08, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_ooffice: enable readonly view for non-only-office documents
parent
d4bccb9e
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 @
b02d9658
...
@@ -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