Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
20e3d9a9
Commit
20e3d9a9
authored
Dec 09, 2014
by
Ioannis Papagiannopoulos
Committed by
Jérome Perrin
Feb 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unused code dropped
parent
c2a02cfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
29 deletions
+1
-29
dream/platform/src/expandable_field/expandablefield.js
dream/platform/src/expandable_field/expandablefield.js
+1
-29
No files found.
dream/platform/src/expandable_field/expandablefield.js
View file @
20e3d9a9
...
...
@@ -40,7 +40,7 @@
function
addField
(
property_id
,
property_definition
,
value
)
{
console
.
log
(
"
ADDFIELD EXPANDABLEFIELDSET 1
"
);
var
sub_gadget
,
temp_property_def
;
var
sub_gadget
;
try
{
queue
.
push
(
function
()
{
...
...
@@ -55,13 +55,6 @@
"
name
"
:
(
property_definition
.
name
||
property_id
)
})
);
if
(
property_definition
.
allOf
)
{
if
(
property_definition
.
allOf
[
0
].
type
)
{
delete
property_definition
.
allOf
[
0
].
type
;
}
temp_property_def
=
property_definition
.
allOf
[
0
];
return
gadget
.
declareGadget
(
"
../list_field/index.html
"
);
}
if
(
property_definition
.
type
===
"
object
"
)
{
// Create a recursive fieldset for this key.
return
gadget
.
declareGadget
(
"
../fieldset/index.html
"
);
...
...
@@ -76,13 +69,6 @@
})
.
push
(
function
(
gg
)
{
sub_gadget
=
gg
;
if
(
temp_property_def
)
{
return
sub_gadget
.
render
({
key
:
property_id
,
value
:
value
,
property_definition
:
temp_property_def
});
}
return
sub_gadget
.
render
({
key
:
property_id
,
value
:
value
,
...
...
@@ -110,13 +96,6 @@
"
name
"
:
(
property_definition
.
name
||
property_id
)
})
);
if
(
property_definition
.
allOf
)
{
if
(
property_definition
.
allOf
[
0
].
type
)
{
delete
property_definition
.
allOf
[
0
].
type
;
}
temp_property_def
=
property_definition
.
allOf
[
0
];
return
gadget
.
declareGadget
(
"
../list_field/index.html
"
);
}
if
(
property_definition
.
type
===
"
object
"
)
{
// Create a recursive fieldset for this key.
return
gadget
.
declareGadget
(
"
../fieldset/index.html
"
);
...
...
@@ -131,13 +110,6 @@
})
.
push
(
function
(
gg
)
{
sub_gadget
=
gg
;
if
(
temp_property_def
)
{
return
sub_gadget
.
render
({
key
:
property_id
,
value
:
value
,
property_definition
:
temp_property_def
});
}
return
sub_gadget
.
render
({
key
:
property_id
,
value
:
value
,
...
...
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