summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-02 22:18:38 -0500
committersullrich <sullrich@pfsense.org>2009-12-02 22:18:38 -0500
commit6d28f4d02154d50beea74e0e7b3dc9fa31066fd0 (patch)
treeb3d1a7177e5b0edf9bb5e5190a0a0a1fc5e77e64 /usr
parent3fa86ecd68e92030fbf04c94cebbd1d136881470 (diff)
downloadpfsense-6d28f4d02154d50beea74e0e7b3dc9fa31066fd0.zip
pfsense-6d28f4d02154d50beea74e0e7b3dc9fa31066fd0.tar.gz
Show all widgets. Remove - button as there is no save mechanism at all for this widget.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/widgets/widgets/traffic_graphs.widget.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/usr/local/www/widgets/widgets/traffic_graphs.widget.php
index b33743e..ab4456d 100644
--- a/usr/local/www/widgets/widgets/traffic_graphs.widget.php
+++ b/usr/local/www/widgets/widgets/traffic_graphs.widget.php
@@ -81,10 +81,6 @@ Refresh Interval:
<?php
- if (get_cpu_speed() >= 500)
- $firstgraphshown = false;
- else
- $firstgraphshown = true;
foreach ($ifdescrs as $ifdescr => $ifname) {
$ifinfo = get_interface_info($ifdescr);
$currentgraph = $showngraphlist[$graphcounter];
@@ -103,17 +99,10 @@ Refresh Interval:
$interfacevalue = "hide";
}
} else {
- if(!$firstgraphshown) {
$mingraphbutton = "inline";
$showgraphbutton = "none";
$graphdisplay = "inline";
$interfacevalue = "show";
- } else {
- $mingraphbutton = "none";
- $showgraphbutton = "inline";
- $graphdisplay = "none";
- $interfacevalue = "hide";
- }
}
@@ -126,8 +115,10 @@ Refresh Interval:
<span onClick="location.href='/status_graph.php?if=<?=$ifdescr;?>'" style="cursor:pointer">Current <?=$ifname;?> Traffic</span>
</div>
<div align="right" style="float:right;width:49%">
+<!--
<div id="<?=$ifname;?>graphdiv-min" onclick='return trafficminimizeDiv("<?php echo $ifname;?>",true)' style="display:<?php echo $mingraphbutton;?>; cursor:pointer" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_minus.gif" alt="Minimize <?=$ifname;?> traffic graph" /></div>
<div id="<?=$ifname;?>graphdiv-open" onclick='return trafficshowDiv("<?php echo $ifname;?>",true)' style="display:<?php echo $showgraphbutton;?>; cursor:pointer" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_open.gif" alt="Show <?=$ifname;?> traffic graph" /></div>
+-->
</div>
<div style="clear:both;"></div>
</div>
OpenPOWER on IntegriCloud