summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-09-01 23:13:07 +1000
committerPhil Davis <phil.davis@inf.org>2014-09-01 23:13:07 +1000
commit1b53d5f25999151c18fabd7ca3fe96291eafa42b (patch)
tree1e35cf4a18b6b36d37f9d27f134331c1121fb4e2 /usr
parenta03fb095e5437058633905b361e1d0bf54f81ae0 (diff)
downloadpfsense-1b53d5f25999151c18fabd7ca3fe96291eafa42b.zip
pfsense-1b53d5f25999151c18fabd7ca3fe96291eafa42b.tar.gz
Fix traffic graph widget default autoscale
so the radio buttons selection allows only 1 to be selected and the setting is then saved. Forum: https://forum.pfsense.org/index.php?topic=81166.msg
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/widgets/widgets/traffic_graphs.widget.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/usr/local/www/widgets/widgets/traffic_graphs.widget.php
index 3523bc1..3f9bba7 100644
--- a/usr/local/www/widgets/widgets/traffic_graphs.widget.php
+++ b/usr/local/www/widgets/widgets/traffic_graphs.widget.php
@@ -111,14 +111,16 @@ if (isset($a_config["scale_type"])) {
$selected_radio = $config["widgets"]["trafficgraphs"]["scale_type"];
if ($selected_radio == "up") {
$scale_type_up = "checked=\"checked\"";
+ $scale_type_follow="";
}
else if ($selected_radio == "follow") {
+ $scale_type_up="";
$scale_type_follow = "checked=\"checked\"";
}
}
?>
- <input name="scale_type_up" class="radio" type="radio" id="scale_type_up" value="up" <?php echo $scale_type_up; ?> onchange="updateGraphDisplays();" /> <span>up</span>
- <input name="scale_type_follow" class="radio" type="radio" id="scale_type_follow" value="follow" <?php echo $scale_type_follow; ?> onchange="updateGraphDisplays();" /> <span>follow</span><br /><br />
+ <input name="scale_type" class="radio" type="radio" id="scale_type_up" value="up" <?php echo $scale_type_up; ?> onchange="updateGraphDisplays();" /> <span>up</span>
+ <input name="scale_type" class="radio" type="radio" id="scale_type_follow" value="follow" <?php echo $scale_type_follow; ?> onchange="updateGraphDisplays();" /> <span>follow</span><br /><br />
Refresh Interval:
<select name="refreshinterval" class="formfld" id="refreshinterval" onchange="updateGraphDisplays();">
<?php for ($i = 1; $i <= 10; $i += 1) { ?>
OpenPOWER on IntegriCloud