mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
2013-08-01 Miguel de Dios <miguel.dedios@artica.es>
* operation/events/events_list.php, extensions/agents_modules.php: removed the debug trace javascript code. * godmode/reporting/visual_console_builder.editor.js: fixed the add fake lines and prevent the remove lines. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8614 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7de99aa603
commit
57729584fa
@ -1,3 +1,11 @@
|
|||||||
|
2013-08-01 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* operation/events/events_list.php, extensions/agents_modules.php:
|
||||||
|
removed the debug trace javascript code.
|
||||||
|
|
||||||
|
* godmode/reporting/visual_console_builder.editor.js: fixed the
|
||||||
|
add fake lines and prevent the remove lines.
|
||||||
|
|
||||||
2013-08-01 Miguel de Dios <miguel.dedios@artica.es>
|
2013-08-01 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/javascript/pandora_visual_console.js: fixed the javascript
|
* include/javascript/pandora_visual_console.js: fixed the javascript
|
||||||
|
@ -350,7 +350,7 @@ function mainAgentsModules() {
|
|||||||
$.each($('.th_class_module_r'), function (i, elem) {
|
$.each($('.th_class_module_r'), function (i, elem) {
|
||||||
id = $(elem).attr('id').replace('th_module_r_', '');
|
id = $(elem).attr('id').replace('th_module_r_', '');
|
||||||
$(\"#th_module_r_\" + id).height(($(\"#div_module_r_\" + id).width() + 10) + 'px');
|
$(\"#th_module_r_\" + id).height(($(\"#div_module_r_\" + id).width() + 10) + 'px');
|
||||||
console.log($(\"#div_module_r_\" + id).width());
|
|
||||||
//$(\"#div_module_r_\" + id).css('margin-top', (max_width - $(\"#div_module_r_\" + id).width()) + 'px');
|
//$(\"#div_module_r_\" + id).css('margin-top', (max_width - $(\"#div_module_r_\" + id).width()) + 'px');
|
||||||
$(\"#div_module_r_\" + id).css('margin-top', (max_width - 20) + 'px');
|
$(\"#div_module_r_\" + id).css('margin-top', (max_width - 20) + 'px');
|
||||||
$(\"#div_module_r_\" + id).show();
|
$(\"#div_module_r_\" + id).show();
|
||||||
|
@ -1196,6 +1196,8 @@ function createItem(type, values, id_data) {
|
|||||||
"node_begin": values['parent'],
|
"node_begin": values['parent'],
|
||||||
"node_end": id_data,
|
"node_end": id_data,
|
||||||
"color": visual_map_get_color_line_status(id_data) };
|
"color": visual_map_get_color_line_status(id_data) };
|
||||||
|
|
||||||
|
|
||||||
lines.push(line);
|
lines.push(line);
|
||||||
|
|
||||||
refresh_lines(lines, 'background', true);
|
refresh_lines(lines, 'background', true);
|
||||||
@ -1356,7 +1358,7 @@ function updateDB_visual(type, idElement , values, event, top, left) {
|
|||||||
found = true;
|
found = true;
|
||||||
if (values['parent'] == 0) {
|
if (values['parent'] == 0) {
|
||||||
//Erased the line
|
//Erased the line
|
||||||
lines.splice(i);
|
lines.splice(i, 1);
|
||||||
end_foreach = true;
|
end_foreach = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1370,12 +1372,17 @@ function updateDB_visual(type, idElement , values, event, top, left) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!found) {
|
if (typeof(values['parent']) != 'undefined') {
|
||||||
var line = {"id": idElement,
|
if (!found) {
|
||||||
"node_begin": values['parent'],
|
var line = {"id": idElement,
|
||||||
"node_end": idElement,
|
"node_begin": values['parent'],
|
||||||
"color": visual_map_get_color_line_status(idElement) };
|
"node_end": idElement,
|
||||||
lines.push(line);
|
"color": visual_map_get_color_line_status(idElement) };
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
lines.push(line);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh_lines(lines, 'background', true);
|
refresh_lines(lines, 'background', true);
|
||||||
@ -1499,10 +1506,15 @@ function deleteDB(idElement) {
|
|||||||
$("#parent > option[value=" + idElement + "]").remove();
|
$("#parent > option[value=" + idElement + "]").remove();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jQuery.each(lines, function(i, line) {
|
jQuery.each(lines, function(i, line) {
|
||||||
if ((line['id'] == idElement) || (line['node_begin'] == idElement)) {
|
if (typeof(line) == 'undefined') {
|
||||||
lines.splice(i);
|
return; //Continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((line['id'] == idElement)
|
||||||
|
|| (line['node_begin'] == idElement)) {
|
||||||
|
|
||||||
|
lines.splice(i, 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
refresh_lines(lines, 'background', true);
|
refresh_lines(lines, 'background', true);
|
||||||
|
@ -968,8 +968,7 @@ function click_button_add_tag(what_button) {
|
|||||||
select_destiny_empty = select_without_tag_empty;
|
select_destiny_empty = select_without_tag_empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log($(this).val());
|
|
||||||
|
|
||||||
without_val = $(this).val();
|
without_val = $(this).val();
|
||||||
if(without_val == null) {
|
if(without_val == null) {
|
||||||
next;
|
next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user