mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Some work in the networkmap.
This commit is contained in:
parent
3b85e3c80f
commit
ff598940e1
@ -350,7 +350,8 @@ if (is_ajax ()) {
|
|||||||
}
|
}
|
||||||
$table->head['name'] = $node_name;
|
$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 = $node[0];
|
||||||
$node_style = json_decode($node);
|
$node_style = json_decode($node);
|
||||||
|
|
||||||
|
@ -2862,20 +2862,3 @@ function get_radius_element(element) {
|
|||||||
return Math.sqrt(
|
return Math.sqrt(
|
||||||
Math.pow(size[0] / 2, 2) + Math.pow(size[1] / 2, 2));
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1906,4 +1906,22 @@ NetworkmapController.prototype.cache_is_element = function(element) {
|
|||||||
else {
|
else {
|
||||||
return true;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -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,
|
$buttons['list'] = array('active' => false,
|
||||||
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap_list">' .
|
'text' => '<a href="index.php?sec=network&sec2=operation/maps/networkmap_list">' .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user