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
8effb805
Commit
8effb805
authored
Feb 07, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "do not fail when loading a json with unknown _classes"
This reverts commit
06a082d6
.
parent
c44137bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dream/platform/static/src/dream.js
dream/platform/static/src/dream.js
+4
-4
No files found.
dream/platform/static/src/dream.js
View file @
8effb805
...
...
@@ -90,8 +90,7 @@
var
node_id
=
that
.
getNodeId
(
element_id
);
$
(
"
#dialog-fieldset
"
).
children
().
remove
();
var
element_type
=
node_dict
[
node_id
].
_class
.
replace
(
'
.
'
,
'
-
'
);
var
property_list
=
(
configuration
[
element_type
]
||
{}).
property_list
||
[];
property_list
.
push
({
"
_class
"
:
"
Dream.Property
"
,
"
id
"
:
"
_class
"
});
var
property_list
=
configuration
[
element_type
].
property_list
||
[];
fieldset
.
append
(
'
<label>ID</label><input type="text" name="id" id="id" value="
'
+
...
...
@@ -201,8 +200,9 @@
$
(
"
#dialog-form
"
).
dialog
(
"
open
"
);
});
// Store default values
var
data
=
{},
property_list
=
(
configuration
[
element_type
]
||
{}
)
[
"
property_list
"
]
||
[];
var
data
=
{},
property_list
=
configuration
[
element_type
][
"
property_list
"
]
||
[];
var
updateDefaultData
=
function
(
data
,
property_list
)
{
$
.
each
(
property_list
,
function
(
idx
,
value
)
{
if
(
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