Some work in the networkmap.

This commit is contained in:
mdtrooper 2016-04-07 15:14:29 +02:00
parent 3b85e3c80f
commit ff598940e1
4 changed files with 21 additions and 19 deletions

View File

@ -350,7 +350,8 @@ if (is_ajax ()) {
}
$table->head['name'] = $node_name;
$node = db_get_all_rows_sql("SELECT style FROM titem WHERE id = " . $id_node_data);
$node = db_get_all_rows_sql(
"SELECT style FROM titem WHERE id = " . $id_node_data);
$node = $node[0];
$node_style = json_decode($node);

View File

@ -2862,20 +2862,3 @@ function get_radius_element(element) {
return Math.sqrt(
Math.pow(size[0] / 2, 2) + Math.pow(size[1] / 2, 2));
}
function update_node(data_graph_id) {
node_id = "node_" + data_graph_id;
var new_label = $("#edit_node_dialog_" + node_id + " input[id='text-label']").val();
var new_shape = $("#edit_node_dialog_" + node_id + " select[id='shape']").val();
$('#' + node_id + " text").text(new_label);
switch (new_shape) {
case 'circle':
break;
case 'rhombus':
break;
case 'square':
break;
}
}

View File

@ -1906,4 +1906,22 @@ NetworkmapController.prototype.cache_is_element = function(element) {
else {
return true;
}
}
function update_node(data_graph_id) {
node_id = "node_" + data_graph_id;
var new_label = $("#edit_node_dialog_" + node_id + " input[id='text-label']").val();
var new_shape = $("#edit_node_dialog_" + node_id + " select[id='shape']").val();
$('#' + node_id + " text").text(new_label);
switch (new_shape) {
case 'circle':
break;
case 'rhombus':
break;
case 'square':
break;
}
}

View File

@ -44,7 +44,7 @@ enterprise_include('include/class/NetworkmapEnterprise.class.php');
require_once('include/browscap/php-local-browscap.php');
//~ require_once('include/browscap/php-local-browscap.php');
$buttons['list'] = array('active' => false,
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap_list">' .