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
fe2fed44
Commit
fe2fed44
authored
Jul 09, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove logs
parent
87e7ab07
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
16 deletions
+1
-16
dream/platform/static/src/dream.js
dream/platform/static/src/dream.js
+0
-8
dream/platform/static/src/dream_launcher.js
dream/platform/static/src/dream_launcher.js
+1
-4
dream/platform/static/src/jsonPlumb.js
dream/platform/static/src/jsonPlumb.js
+0
-4
No files found.
dream/platform/static/src/dream.js
View file @
fe2fed44
...
...
@@ -107,13 +107,10 @@
}
$
.
each
(
property_list
,
function
(
key
,
property
)
{
if
(
property
.
_class
===
"
Dream.Property
"
)
{
console
.
log
(
"
property.id, previous_data
"
,
property
.
id
,
previous_data
);
previous_value
=
previous_data
[
property
.
id
]
||
""
;
if
(
previous_value
.
length
>
0
)
{
previous_value
=
'
value="
'
+
previous_value
+
'
"
'
;
}
//previous_value = ' value="bar"';
console
.
log
(
"
previous_value
"
);
fieldset
.
append
(
"
<label>
"
+
prefix
+
property
.
id
+
"
</label>
"
+
'
<input type="text" name="
'
+
prefix
+
property
.
id
+
'
"
'
+
previous_value
+
...
...
@@ -122,12 +119,10 @@
}
else
if
(
property
.
_class
===
"
Dream.PropertyList
"
)
{
var
next_prefix
=
prefix
+
property
.
id
+
"
-
"
;
var
next_previous_data
=
previous_data
[
property
.
id
]
||
{};
console
.
log
(
"
next_previous_data
"
,
next_previous_data
);
renderField
(
property
.
property_list
,
next_previous_data
,
next_prefix
);
}
});
};
console
.
log
(
"
property_list to be rendered
"
,
property_list
);
renderField
(
property_list
,
previous_data
);
$
(
"
#dialog-form
"
).
dialog
({
...
...
@@ -149,7 +144,6 @@
Validate
:
function
()
{
var
data
=
{},
prefixed_property_id
,
property_element
;
var
updateDataPropertyList
=
function
(
property_list
,
data
,
prefix
)
{
console
.
log
(
"
updateDataPropertyList, property_list
"
,
property_list
);
if
(
prefix
===
undefined
)
{
prefix
=
""
;
}
...
...
@@ -181,7 +175,6 @@
var
element_prefix
=
element
.
id
.
split
(
'
_
'
)[
0
];
priv
.
super_newElement
(
element
,
configuration
[
element_prefix
]);
$
(
"
#
"
+
element
.
id
).
bind
(
'
click
'
,
function
()
{
console
.
log
(
"
bind click on window
"
,
$
(
this
));
$
(
"
#dialog-form
"
).
dialog
(
"
destroy
"
)
;
priv
.
prepareDialogForElement
(
element
.
id
,
element
.
id
);
$
(
"
#dialog-form
"
).
dialog
(
"
open
"
);
...
...
@@ -190,7 +183,6 @@
var
data
=
{},
property_list
=
configuration
[
element_prefix
][
"
property_list
"
]
||
[];
var
updateDefaultData
=
function
(
data
,
property_list
)
{
$
.
each
(
property_list
,
function
(
key
,
element
)
{
console
.
log
(
"
going to parse property_list, element
"
,
element
);
if
(
element
.
_class
===
"
Dream.Property
"
)
{
data
[
element
.
id
]
=
element
.
default
;
}
else
if
(
element
.
_class
===
"
Dream.PropertyList
"
)
{
...
...
dream/platform/static/src/dream_launcher.js
View file @
fe2fed44
...
...
@@ -133,11 +133,8 @@
// once the data is read, we can subscribe to every changes
$
.
subscribe
(
"
Dream.Gui.onDataChange
"
,
function
(
event
,
data
)
{
console
.
log
(
"
onDataChange, data
"
,
data
);
$
(
"
#json_output
"
).
text
(
JSON
.
stringify
(
data
,
undefined
,
"
"
));
jio
.
put
({
_id
:
"
dream_demo
"
,
data
:
data
},
function
(
err
,
response
)
{
console
.
log
(
"
jio put:
"
,
response
);}
);
jio
.
put
({
_id
:
"
dream_demo
"
,
data
:
data
},
function
(
err
,
response
)
{
}
);
});
});
...
...
dream/platform/static/src/jsonPlumb.js
View file @
fe2fed44
...
...
@@ -52,7 +52,6 @@
// listen for clicks on connections, and offer to change values on click.
jsPlumb
.
bind
(
"
click
"
,
function
(
conn
)
{
console
.
log
(
"
user click connection
"
,
conn
);
//priv.dialog_connection = conn;
jsPlumb
.
detach
(
conn
);
});
...
...
@@ -62,11 +61,9 @@
});
jsPlumb
.
bind
(
"
connectionDrag
"
,
function
(
connection
)
{
console
.
log
(
"
connection
"
+
connection
.
id
+
"
is being dragged
"
);
});
jsPlumb
.
bind
(
"
connectionDragStop
"
,
function
(
connection
)
{
console
.
log
(
"
connection
"
+
connection
.
id
+
"
was dragged
"
);
});
jsPlumb
.
makeTarget
(
jsPlumb
.
getSelector
(
"
.w
"
),
{
...
...
@@ -162,7 +159,6 @@
};
that
.
removeElement
=
function
(
element_id
)
{
console
.
log
(
"
going to remove element
"
,
element_id
);
priv
.
removeElement
(
element_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