remove debug console.log traces.

This commit is contained in:
m-lopez-f 2017-03-16 09:10:22 +01:00
parent 41072d8347
commit b937db8f35
5 changed files with 6 additions and 15 deletions

View File

@ -39,8 +39,8 @@ $render_map = (bool)get_parameter('render_map', false);
$graph_javascript = (bool)get_parameter('graph_javascript', false);
if ($render_map) {
$width = (int)get_parameter('width', '400');
$height = (int)get_parameter('height', '400');
$width = (int) get_parameter('width', '400');
$height = (int) get_parameter('height', '400');
$keep_aspect_ratio = (bool) get_parameter('keep_aspect_ratio');
visual_map_print_visual_map($id_visual_console, true, true, $width,

View File

@ -1923,11 +1923,9 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
if (thresholded) {
$.each(data_base, function() {
// Prepared to turning series
//if(showed[this.id.split('_')[1]]) {
datas.push(this);
//}
datas.push(this);
});
plot = $.plot($('#' + graph_id), data_base,
$.extend(true, {}, options, {
yaxis: {max: max_draw},
@ -1935,7 +1933,6 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
thresholded = false;
}
else {
var max_draw = plot.getAxes().yaxis.datamax;
if (max_draw < red_threshold || max_draw < yellow_threshold) {
@ -1945,7 +1942,8 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
$.extend(true, {}, options, {
yaxis: {max: maxim_data + (maxim_data*0.5)},
}));
} else {
}
else {
plot = $.plot($('#' + graph_id), data_base,
$.extend(true, {}, options, {
yaxis: {max: plot.getAxes().yaxis.max},
@ -1954,13 +1952,10 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
datas = add_threshold (data_base, threshold_data, plot.getAxes().yaxis.min, plot.getAxes().yaxis.max,
yellow_threshold, red_threshold, extremes, red_up);
thresholded = true;
}
plot.setData(datas);
plot.draw();
//~ plot.setSelection(currentRanges);
});
$('#menu_cancelzoom_' + graph_id).click(function() {

View File

@ -401,8 +401,6 @@ function alert_templates_changed_by_multiple_agents_with_alerts (event, id_agent
templates.push($(val).val());
});
console.log(templates);
$('#module').attr ('disabled', 1);
$('#module').empty ();
$('#module').append ($('<option></option>').html ("Loading...").attr ("value", 0));

View File

@ -542,7 +542,6 @@ function show_events_group_agent (id_insert, id_agent, server_id) {
data: parameter,
dataType: 'html',
success: function (data) {
console.log(data);
$("#"+id_insert).html(data);
$("#"+id_insert).toggle();
}

View File

@ -652,7 +652,6 @@ else {
<script type="text/javascript">
$(document).ready (function () {
$("[class^='left']").mouseenter (function () {
console.log($(this));
$(".agent"+$(this)[0].className).css('visibility', '');
}).mouseleave(function () {
$(".agent"+$(this)[0].className).css('visibility', 'hidden');