From 6d28f4d02154d50beea74e0e7b3dc9fa31066fd0 Mon Sep 17 00:00:00 2001 From: sullrich Date: Wed, 2 Dec 2009 22:18:38 -0500 Subject: [PATCH] Show all widgets. Remove - button as there is no save mechanism at all for this widget. --- .../www/widgets/widgets/traffic_graphs.widget.php | 13 ++----------- 1 file 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 b33743ea17..ab4456d015 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: = 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: Current Traffic
+