mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
New networkmaps in progress... (Fixed refresh holding area action in js)
This commit is contained in:
parent
038470793d
commit
249f81da7e
@ -2567,6 +2567,8 @@ function networkmap_refresh_holding_area($id_networkmap) {
|
||||
array('state' => $row['state']),
|
||||
array('id' => $row['id']));
|
||||
|
||||
$row['style'] = json_decode($row['style'], true);
|
||||
|
||||
$node = networkmap_db_node_to_js_node($row, $count,
|
||||
$count_item_holding_area);
|
||||
|
||||
|
@ -934,7 +934,6 @@ function zoom(manual) {
|
||||
|
||||
|
||||
function set_positions_graph() {
|
||||
|
||||
link.selectAll("path.link")
|
||||
.attr("d", function(d) {
|
||||
|
||||
@ -949,8 +948,6 @@ function set_positions_graph() {
|
||||
" L " + d.source.x + " " + d.source.y;
|
||||
});
|
||||
|
||||
|
||||
|
||||
node.selectAll(".node_shape_circle")
|
||||
.attr("cx", function(d) {
|
||||
return d.x;
|
||||
@ -1624,11 +1621,11 @@ function init_drag_and_drop() {
|
||||
if (d3.event.sourceEvent.button == 2)
|
||||
return;
|
||||
|
||||
|
||||
flag_drag_running = false;
|
||||
|
||||
var selection = d3.selectAll('.node_selected');
|
||||
|
||||
if (enterprise_installed) {
|
||||
selection
|
||||
.each(function(d) {
|
||||
var params = [];
|
||||
@ -1659,6 +1656,7 @@ function init_drag_and_drop() {
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
d3.event.sourceEvent.stopPropagation();
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user