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
d6a86166
Commit
d6a86166
authored
Nov 21, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: schema_editor: remove unused code
parent
c9f2cb68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
39 deletions
+4
-39
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_erp5_page_ojs_add_json_document.js.js
..._page_module/gadget_erp5_page_ojs_add_json_document.js.js
+2
-19
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_erp5_page_ojs_add_json_schema.js.js
...eb_page_module/gadget_erp5_page_ojs_add_json_schema.js.js
+2
-20
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_erp5_page_ojs_add_json_document.js.js
View file @
d6a86166
...
...
@@ -3,17 +3,6 @@
(
function
(
window
,
rJS
,
RSVP
)
{
"
use strict
"
;
var
content_type
=
{
Spreadsheet
:
'
application/x-asc-spreadsheet
'
,
Presentation
:
'
application/x-asc-presentation
'
,
Text
:
'
application/x-asc-text
'
},
file_ext
=
{
Spreadsheet
:
'
xlsy
'
,
Presentation
:
'
ppty
'
,
Text
:
'
docy
'
};
rJS
(
window
)
/////////////////////////////////////////////////////////////////
// Acquired methods
...
...
@@ -31,18 +20,12 @@
var
gadget
=
this
;
return
RSVP
.
Queue
()
.
push
(
function
()
{
var
portal_type
=
options
.
portal_type
,
ext
=
file_ext
[
portal_type
],
ret
=
{
var
ret
=
{
title
:
"
Untitled Document
"
,
portal_type
:
"
JSON Document
"
,
schema
:
options
.
schema
,
parent_relative_url
:
"
document_module
"
,
content_type
:
content_type
[
portal_type
]
||
undefined
parent_relative_url
:
"
document_module
"
};
if
(
ext
)
{
ret
.
filename
=
"
default.
"
+
ext
;
}
return
gadget
.
jio_post
(
ret
);
})
.
push
(
function
(
id
)
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_erp5_page_ojs_add_json_schema.js.js
View file @
d6a86166
...
...
@@ -3,18 +3,6 @@
(
function
(
window
,
rJS
,
RSVP
,
Blob
)
{
"
use strict
"
;
var
content_type
=
{
Spreadsheet
:
'
application/x-asc-spreadsheet
'
,
Presentation
:
'
application/x-asc-presentation
'
,
Text
:
'
application/x-asc-text
'
};
var
file_ext
=
{
Spreadsheet
:
'
xlsy
'
,
Presentation
:
'
ppty
'
,
Text
:
'
docy
'
};
rJS
(
window
)
/////////////////////////////////////////////////////////////////
// Acquired methods
...
...
@@ -30,21 +18,15 @@
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
()
{
var
gadget
=
this
,
portal_type
=
options
.
portal_type
,
ext
=
file_ext
[
portal_type
],
ret
=
{
title
:
"
Untitled Schema
"
,
portal_type
:
"
JSON Schema
"
,
parent_relative_url
:
"
schema_module
"
,
content_type
:
content_type
[
portal_type
]
||
undefined
parent_relative_url
:
"
schema_module
"
};
return
RSVP
.
Queue
()
.
push
(
function
()
{
if
(
ext
)
{
ret
.
filename
=
"
default.
"
+
ext
;
}
return
gadget
.
jio_post
(
ret
);
})
.
push
(
function
(
id
)
{
...
...
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