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
Lukas Niegsch
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
Show 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,15 +119,12 @@
...
@@ -119,15 +119,12 @@
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
()
{
if
(
view_gadget
.
state
.
content_editable
)
{
return
gadget
return
gadget
.
jio_putAttachment
(
child_gadget
.
state
.
jio_key
,
'
data
'
,
.
jio_putAttachment
(
child_gadget
.
state
.
jio_key
,
'
data
'
,
jIO
.
util
.
dataURItoBlob
(
data
))
jIO
.
util
.
dataURItoBlob
(
data
))
...
@@ -141,6 +138,7 @@
...
@@ -141,6 +138,7 @@
jio_key
:
child_gadget
.
state
.
jio_key
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