diff --git a/pandora_console/include/functions_maps.php b/pandora_console/include/functions_maps.php index 2a776877d3..8379c49b37 100644 --- a/pandora_console/include/functions_maps.php +++ b/pandora_console/include/functions_maps.php @@ -127,4 +127,14 @@ function maps_update_map ($id, $values) { $result = db_process_sql_update('tmap', $values, $where); return (int)$result; } + +function maps_add_node ($values) { + $result_add_node = db_process_sql_insert('titem', $values); + return $result_add_node; +} + +function maps_add_node_relationship ($values) { + $result_add_node_rel = db_process_sql_insert('trel_item', $values); + return $result_add_node_rel; +} ?> diff --git a/pandora_console/include/javascript/map/MapController.js b/pandora_console/include/javascript/map/MapController.js index ef0bf1a4e3..4615e58750 100644 --- a/pandora_console/include/javascript/map/MapController.js +++ b/pandora_console/include/javascript/map/MapController.js @@ -1833,7 +1833,7 @@ MapController.prototype.make_arrow = function(from_id, to_id) { */ MapController.prototype.get_status_selection_node = function(id_node) { var self = this; - + var status = d3.select(self._target + " #node_" + id_node) .attr("data-select");