Fix only show average graphs checkbox - #1460
This commit is contained in:
parent
63c20ffbfb
commit
0fac48d71c
|
@ -100,6 +100,13 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
|
||||||
else {
|
else {
|
||||||
$("#hidden-show_other").val(0);
|
$("#hidden-show_other").val(0);
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
// if ($('#hidden-avg_only_sent').is(":checked") == true) {
|
||||||
|
// $("#hidden-avg_only_sent").val(1);
|
||||||
|
// }
|
||||||
|
// else {
|
||||||
|
// $("#hidden-avg_only_sent").val(0);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
|
@ -139,15 +146,13 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
|
||||||
|
|
||||||
$draw_alerts = get_parameter("draw_alerts", 0);
|
$draw_alerts = get_parameter("draw_alerts", 0);
|
||||||
|
|
||||||
if(isset($config['only_average']) && $config['only_average']){
|
if(isset($config['only_average'])){
|
||||||
$avg_only = 1;
|
$avg_only = $config['only_average'];
|
||||||
}
|
|
||||||
else {
|
|
||||||
$avg_only = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$show_other = get_parameter('show_other');
|
$show_other = get_parameter('show_other',-1);
|
||||||
if (isset($show_other) && $show_other) {
|
|
||||||
|
if ($show_other != -1) {
|
||||||
$avg_only = $show_other;
|
$avg_only = $show_other;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue