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
9d0d47d2
Commit
9d0d47d2
authored
Oct 28, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "remove onDataChange now that we have an explicit save button"
This reverts commit
e12608e8
.
parent
91c917f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
dream/platform/src/jsplumb/jsplumb.js
dream/platform/src/jsplumb/jsplumb.js
+15
-0
No files found.
dream/platform/src/jsplumb/jsplumb.js
View file @
9d0d47d2
...
...
@@ -111,6 +111,11 @@
return
'
DreamNode_
'
+
n
;
}
function
onDataChange
()
{
//$.publish("Dream.Gui.onDataChange", g.private.getData());
return
undefined
;
}
function
updateConnectionData
(
gadget
,
connection
,
remove
,
edge_data
)
{
if
(
remove
)
{
delete
gadget
.
props
.
edge_container
[
connection
.
id
];
...
...
@@ -121,6 +126,7 @@
edge_data
||
{}
];
}
onDataChange
();
}
// bind to connection/connectionDetached events,
...
...
@@ -196,6 +202,7 @@
}
coordinates
[
node_id
]
=
coordinate
;
gadget
.
props
.
preference_container
.
coordinates
=
coordinates
;
onDataChange
();
return
coordinate
;
}
...
...
@@ -276,6 +283,7 @@
// });
// split in 2 methods ? one for events one for manip
onDataChange
();
draggable
(
gadget
);
}
...
...
@@ -364,6 +372,7 @@
// 1.1111;
// setZoom(gadget, zoom_level);
// gadget.props.preference_container.zoom_level = zoom_level;
// onDataChange();
// redraw(gadget);
// }
...
...
@@ -372,6 +381,7 @@
// 0.9;
// setZoom(gadget, zoom_level);
// gadget.props.preference_container.zoom_level = zoom_level;
// onDataChange();
// redraw(gadget);
// }
...
...
@@ -389,6 +399,7 @@
delete
gadget
.
props
.
edge_container
[
k
];
}
});
onDataChange
();
}
function
updateElementData
(
gadget
,
node_id
,
data
)
{
...
...
@@ -418,6 +429,7 @@
=
gadget
.
props
.
preference_container
.
coordinates
[
node_id
];
delete
gadget
.
props
.
preference_container
.
coordinates
[
node_id
];
}
onDataChange
();
}
// function clearAll(gadget) {
...
...
@@ -465,10 +477,12 @@
// function setGeneralProperties(gadget, properties) {
// gadget.props.general_container = properties;
// onDataChange();
// }
// function updateGeneralProperties(gadget, properties) {
// $.extend(gadget.props.general_container, properties);
// onDataChange();
// }
function
openNodeDialog
(
gadget
,
element
,
config_dict
)
{
...
...
@@ -628,6 +642,7 @@
box
.
css
(
"
left
"
,
absolute_position
[
0
]);
updateNodeStyle
(
gadget
,
element
.
element_id
);
draggable
(
gadget
);
onDataChange
();
}
function
waitForDragover
(
gadget
)
{
...
...
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