From 5274102ea43536827826efd98a7d97dbbeb882a9 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Wed, 29 Oct 2014 15:39:15 -0500 Subject: Hide burst for limiters, since it doesn't do anything. more details in ticket #3933 --- etc/inc/shaper.inc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'etc/inc') diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index cd52390..80471f5 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -2887,8 +2887,8 @@ class dummynet_class { function validate_input($data, &$input_errors) { $reqdfields[] = "bandwidth"; $reqdfieldsn[] = gettext("Bandwidth"); - $reqdfields[] = "burst"; - $reqdfieldsn[] = gettext("Burst"); + /*$reqdfields[] = "burst"; + $reqdfieldsn[] = gettext("Burst"); */ $reqdfields[] = "bandwidthtype"; $reqdfieldsn[] = gettext("Bandwidthtype"); $reqdfields[] = "newname"; @@ -3253,9 +3253,9 @@ var addBwRowTo = (function() { td = d.createElement("td"); td.innerHTML=""; tr.appendChild(td); - td = d.createElement("td"); - td.innerHTML=""; - tr.appendChild(td); + //td = d.createElement("td"); + //td.innerHTML=""; + //tr.appendChild(td); td = d.createElement("td"); td.innerHTML=""; tr.appendChild(td); @@ -3326,7 +3326,7 @@ EOD; $form .= ""; $form .= ""; $form .= ""; - $form .= ""; + //$form .= ""; $form .= ""; $form .= ""; $form .= ""; @@ -3335,8 +3335,8 @@ EOD; foreach ($bandwidth as $bwidx => $bw) { $form .= "\n
Bandwidth
Burst
Burst
Bw type
Schedule
"; $form .= ""; - $form .= ""; - $form .= ""; + //$form .= ""; + //$form .= ""; $form .= ""; $form .= "
"; $form .= ""; $form .= "add"; - $form .= "
" . gettext("Bandwidth is a rate (e.g. Mbit/s), burst is a total amount of data that will be transferred at full speed after an idle period.") . "
"; + //$form .= "
" . gettext("Bandwidth is a rate (e.g. Mbit/s), burst is a total amount of data that will be transferred at full speed after an idle period.") . "
"; + $form .= "
" . gettext("Bandwidth is the rate (e.g. Mbit/s) to which traffic in this limiter will be restricted.") . "
"; $form .= ""; $form .= "" . gettext("Mask") . ""; $form .= ""; -- cgit v1.1