mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Now avg_only is enabled by default in stat_win.php and errors fixed. Ticket #3778
This commit is contained in:
parent
ce43094d18
commit
8000b55a68
@ -2011,10 +2011,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
|||||||
if (menu) {
|
if (menu) {
|
||||||
var parent_height;
|
var parent_height;
|
||||||
$('#menu_overview_' + graph_id).click(function() {
|
$('#menu_overview_' + graph_id).click(function() {
|
||||||
if ( $('#overview_' + graph_id).css('visibility') == 'hidden' )
|
$('#overview_' + graph_id).toggle();
|
||||||
$('#overview_' + graph_id).css('visibility','visible');
|
|
||||||
else
|
|
||||||
$('#overview_' + graph_id).css('visibility','hidden');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#menu_export_csv_' + graph_id).click(function() {
|
$('#menu_export_csv_' + graph_id).click(function() {
|
||||||
@ -2181,13 +2178,11 @@ function get_event_details (event_ids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function adjust_left_width_canvas(adapter_id, adapted_id) {
|
function adjust_left_width_canvas(adapter_id, adapted_id) {
|
||||||
adapter_left_margin = $('#'+adapter_id+' .yAxis .tickLabel').css('width');
|
var adapter_left_margin = $('#'+adapter_id+' .yAxis .tickLabel').width();
|
||||||
|
var adapted_pix = $('#'+adapted_id).width();
|
||||||
adapted_pix = $('#'+adapted_id).css('width').split('px');
|
var new_adapted_width = adapted_pix - adapter_left_margin;
|
||||||
new_adapted_width = parseInt(adapted_pix[0])-parseInt(adapter_left_margin);
|
|
||||||
|
|
||||||
$('#'+adapted_id).css('width',new_adapted_width);
|
|
||||||
|
|
||||||
|
$('#'+adapted_id).width(new_adapted_width);
|
||||||
$('#'+adapted_id).css('margin-left', adapter_left_margin);
|
$('#'+adapted_id).css('margin-left', adapter_left_margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,8 +249,8 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend,
|
|||||||
else {
|
else {
|
||||||
$height = 1;
|
$height = 1;
|
||||||
}
|
}
|
||||||
if ( $dashboard == false AND $vconsole == false )
|
if (!$dashboard && !$vconsole)
|
||||||
$return .= "<div id='overview_$graph_id' class='overview_graph' style='visibility: hidden; margin-left:0px; margin-top:20px; width: ".$width."px; height: ".$height ."px;'></div>";
|
$return .= "<div id='overview_$graph_id' class='overview_graph' style='display: none; margin-left:0px; margin-top:20px; width: ".$width."px; height: ".$height ."px;'></div>";
|
||||||
|
|
||||||
if ($water_mark != '') {
|
if ($water_mark != '') {
|
||||||
$return .= "<div id='watermark_$graph_id' style='display:none; position:absolute;'><img id='watermark_image_$graph_id' src='$water_mark'></div>";
|
$return .= "<div id='watermark_$graph_id' style='display:none; position:absolute;'><img id='watermark_image_$graph_id' src='$water_mark'></div>";
|
||||||
|
@ -134,7 +134,7 @@ $id = get_parameter('id');
|
|||||||
}
|
}
|
||||||
|
|
||||||
$draw_alerts = get_parameter("draw_alerts", 0);
|
$draw_alerts = get_parameter("draw_alerts", 0);
|
||||||
$avg_only = get_parameter ("avg_only", 0);
|
$avg_only = get_parameter ("avg_only", 1);
|
||||||
$show_other = (bool)get_parameter('show_other', false);
|
$show_other = (bool)get_parameter('show_other', false);
|
||||||
if ($show_other) {
|
if ($show_other) {
|
||||||
$avg_only = 0;
|
$avg_only = 0;
|
||||||
@ -497,8 +497,6 @@ ui_include_time_picker(true);
|
|||||||
|
|
||||||
$.datepicker.setDefaults($.datepicker.regional["<?php echo $custom_user_language; ?>"]);
|
$.datepicker.setDefaults($.datepicker.regional["<?php echo $custom_user_language; ?>"]);
|
||||||
|
|
||||||
forced_title_callback();
|
|
||||||
|
|
||||||
$(window).ready(function() {
|
$(window).ready(function() {
|
||||||
$("#field_list").css('height', ($(window).height() - 160) + 'px');
|
$("#field_list").css('height', ($(window).height() - 160) + 'px');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user