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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
a54a0303
Commit
a54a0303
authored
Oct 10, 2017
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: add filename for new onlyoffice documents
parent
f1082890
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_page_ojs_add_document_js.js
...e_module/gadget_officejs_erp5_page_ojs_add_document_js.js
+10
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_page_ojs_add_document_js.js
View file @
a54a0303
...
...
@@ -9,6 +9,12 @@
Text
:
'
application/x-asc-text
'
};
var
file_ext
=
{
Spreadsheet
:
'
xlsy
'
,
Presentation
:
'
ppty
'
,
Text
:
'
docy
'
};
rJS
(
window
)
/////////////////////////////////////////////////////////////////
// Acquired methods
...
...
@@ -36,7 +42,9 @@
title
:
"
Untitled Document
"
,
portal_type
:
result
[
0
],
parent_relative_url
:
result
[
1
],
content_type
:
content_type
[
result
[
0
]]
||
undefined
content_type
:
content_type
[
result
[
0
]]
||
undefined
,
filename
:
file_ext
[
result
[
0
]]
?
((
doc
.
reference
||
doc
.
title
||
"
default
"
)
+
"
.
"
+
file_ext
[
doc
.
portal_type
])
:
undefined
});
})
.
push
(
function
(
id
)
{
...
...
@@ -49,4 +57,4 @@
});
});
});
}(
window
,
rJS
,
RSVP
,
Blob
));
\ No newline at end of file
}(
window
,
rJS
,
RSVP
,
Blob
));
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