2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map_editor.php, include/ajax/visual_console_builder.ajax.php, godmode/reporting/visual_console_builder.php, godmode/reporting/visual_console_builder.data.php, godmode/reporting/visual_console_builder.editor.js: some fixes in the visualconsole. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2bae3e75f7
commit
45313de94d
|
@ -1,3 +1,12 @@
|
|||
2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_visual_map_editor.php,
|
||||
include/ajax/visual_console_builder.ajax.php,
|
||||
godmode/reporting/visual_console_builder.php,
|
||||
godmode/reporting/visual_console_builder.data.php,
|
||||
godmode/reporting/visual_console_builder.editor.js: some fixes in
|
||||
the visualconsole.
|
||||
|
||||
2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/ajax/visual_console_builder.ajax.php: fixed the name of
|
||||
|
|
|
@ -219,6 +219,7 @@ function readFields() {
|
|||
values['metaconsole'] = 1;
|
||||
values['id_agent'] = $("#hidden-agent").val();
|
||||
values['server_name'] = $("#id_server_name").val();
|
||||
values['server_id'] = $("input[name='id_server_metaconsole']").val();
|
||||
}
|
||||
else {
|
||||
values['metaconsole'] = 0;
|
||||
|
@ -1511,13 +1512,6 @@ function eventsItems(drag) {
|
|||
$('.item').unbind('dragstop');
|
||||
$('.item').unbind('dragstart');
|
||||
|
||||
//Check if exist or create the previous draggable
|
||||
check_draggable = $(".item").data();
|
||||
if (check_draggable) {
|
||||
if (typeof(check_draggable.uiDraggable) != "undefined")
|
||||
$(".item").draggable('destroy');
|
||||
}
|
||||
|
||||
//$(".item").resizable(); //Disable but run in ff and in the waste (aka micro$oft IE) show ungly borders
|
||||
|
||||
$('.item').bind('click', function(event, ui) {
|
||||
|
|
|
@ -401,6 +401,8 @@ else {
|
|||
$url_view = 'index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=0&id_visualmap=' . $idVisualConsole . '&refr=' . $view_refresh;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$buttons = array(
|
||||
'view' => array('active' => false,
|
||||
'text' => '<a href="' . $url_view . '">' .
|
||||
|
|
|
@ -65,6 +65,7 @@ $type_percentile = get_parameter('type_percentile', 'percentile');
|
|||
$value_show = get_parameter('value_show', 'percent');
|
||||
$metaconsole = get_parameter('metaconsole', 0);
|
||||
$server_name = get_parameter('server_name', null);
|
||||
$server_id = (int)get_parameter('server_id', 0);
|
||||
$id_agent = get_parameter('id_agent', null);
|
||||
$id_metaconsole = get_parameter('id_metaconsole', null);
|
||||
|
||||
|
@ -333,6 +334,10 @@ switch ($action) {
|
|||
$values['id_metaconsole'] = db_get_value('id',
|
||||
'tmetaconsole_setup', 'server_name', $server_name);
|
||||
}
|
||||
if ($server_id > 0) {
|
||||
$values['id_metaconsole'] = $server_id;
|
||||
}
|
||||
|
||||
|
||||
if ($id_agent !== null) {
|
||||
$values['id_agent'] = $id_agent;
|
||||
|
@ -546,8 +551,13 @@ switch ($action) {
|
|||
$values['pos_y'] = $top;
|
||||
|
||||
if (defined('METACONSOLE') && $metaconsole) {
|
||||
if ($server_id > 0) {
|
||||
$values['id_metaconsole'] = $server_id;
|
||||
}
|
||||
else {
|
||||
$values['id_metaconsole'] = db_get_value('id',
|
||||
'tmetaconsole_setup', 'server_name', $server_name);
|
||||
}
|
||||
$values['id_agent'] = $id_agent;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -132,8 +132,11 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) {
|
|||
$params['disabled_javascript_on_blur_function'] = true;
|
||||
|
||||
$params['print_input_server'] = true;
|
||||
$params['print_input_id_server'] = true;
|
||||
$params['input_server_id'] = 'id_server_name';
|
||||
$params['input_id_server_name'] = 'id_server_metaconsole';
|
||||
$params['input_server_value'] = '';
|
||||
$params['use_input_id_server'] = true;
|
||||
$params['metaconsole_enabled'] = true;
|
||||
$params['print_hidden_input_idagent'] = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue