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:
mdtrooper 2013-08-01 11:05:38 +00:00
parent e9d539874b
commit a95e228376
4 changed files with 32 additions and 13 deletions

View File

@ -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>
* include/javascript/pandora_visual_console.js: fixed the javascript

View File

@ -350,7 +350,7 @@ function mainAgentsModules() {
$.each($('.th_class_module_r'), function (i, elem) {
id = $(elem).attr('id').replace('th_module_r_', '');
$(\"#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 - 20) + 'px');
$(\"#div_module_r_\" + id).show();

View File

@ -1196,6 +1196,8 @@ function createItem(type, values, id_data) {
"node_begin": values['parent'],
"node_end": id_data,
"color": visual_map_get_color_line_status(id_data) };
lines.push(line);
refresh_lines(lines, 'background', true);
@ -1356,7 +1358,7 @@ function updateDB_visual(type, idElement , values, event, top, left) {
found = true;
if (values['parent'] == 0) {
//Erased the line
lines.splice(i);
lines.splice(i, 1);
end_foreach = true;
}
else {
@ -1370,12 +1372,17 @@ function updateDB_visual(type, idElement , values, event, top, left) {
}
});
if (!found) {
var line = {"id": idElement,
"node_begin": values['parent'],
"node_end": idElement,
"color": visual_map_get_color_line_status(idElement) };
lines.push(line);
if (typeof(values['parent']) != 'undefined') {
if (!found) {
var line = {"id": idElement,
"node_begin": values['parent'],
"node_end": idElement,
"color": visual_map_get_color_line_status(idElement) };
lines.push(line);
}
}
refresh_lines(lines, 'background', true);
@ -1499,10 +1506,15 @@ function deleteDB(idElement) {
$("#parent > option[value=" + idElement + "]").remove();
jQuery.each(lines, function(i, line) {
if ((line['id'] == idElement) || (line['node_begin'] == idElement)) {
lines.splice(i);
if (typeof(line) == 'undefined') {
return; //Continue
}
if ((line['id'] == idElement)
|| (line['node_begin'] == idElement)) {
lines.splice(i, 1);
}
});
refresh_lines(lines, 'background', true);

View File

@ -968,8 +968,7 @@ function click_button_add_tag(what_button) {
select_destiny_empty = select_without_tag_empty;
}
console.log($(this).val());
without_val = $(this).val();
if(without_val == null) {
next;