diff options
author | jim-p <jim@pingle.org> | 2010-05-06 12:50:04 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-05-06 12:52:45 -0400 |
commit | bb927ed42826cc63a7e3e5bc6958c8ef9c645372 (patch) | |
tree | 38a1089414b24f1b3d46b0a7976dbb6521065448 /usr | |
parent | acc5dd59f9c5f60ae67e135376506e9c9f70c154 (diff) | |
download | pfsense-bb927ed42826cc63a7e3e5bc6958c8ef9c645372.zip pfsense-bb927ed42826cc63a7e3e5bc6958c8ef9c645372.tar.gz |
Previous commit also fixed traffic graph state changing, so re-enable that as well.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/widgets/widgets/traffic_graphs.widget.php | 9 |
1 files changed, 7 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 ab4456d..dcc8b77 100644 --- a/usr/local/www/widgets/widgets/traffic_graphs.widget.php +++ b/usr/local/www/widgets/widgets/traffic_graphs.widget.php @@ -99,10 +99,17 @@ Refresh Interval: $interfacevalue = "hide"; } } else { + if(!$firstgraphshown) { $mingraphbutton = "inline"; $showgraphbutton = "none"; $graphdisplay = "inline"; $interfacevalue = "show"; + } else { + $mingraphbutton = "none"; + $showgraphbutton = "inline"; + $graphdisplay = "none"; + $interfacevalue = "hide"; + } } @@ -115,10 +122,8 @@ 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> |