summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_advanced_firewall.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-08-27 11:47:24 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-08-27 11:47:51 -0400
commitb8f22f61dd6f475a2c7831e9849ff85bd5eb2736 (patch)
tree0a8b081a3d19d960fcb4ee8ee3aadf7ecb64af06 /src/usr/local/www/system_advanced_firewall.php
parent7295f5d0ce173b756e81d08b0a56df1775cc0897 (diff)
downloadpfsense-b8f22f61dd6f475a2c7831e9849ff85bd5eb2736.zip
pfsense-b8f22f61dd6f475a2c7831e9849ff85bd5eb2736.tar.gz
arrray type changed to associative for country codes
Diffstat (limited to 'src/usr/local/www/system_advanced_firewall.php')
-rw-r--r--src/usr/local/www/system_advanced_firewall.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/usr/local/www/system_advanced_firewall.php b/src/usr/local/www/system_advanced_firewall.php
index 3b41965..2202b7e 100644
--- a/src/usr/local/www/system_advanced_firewall.php
+++ b/src/usr/local/www/system_advanced_firewall.php
@@ -718,18 +718,23 @@ print $form;
events.push(function(){
// Change help text based on the selector value
function setHelpText(id, text) {
- $('#' + id).parent().parent('div').find('span').text(text);
+ $('#' + id).parent().parent('div').find('span').html(text);
}
function setOptText(val) {
+ var htext = '<font color="green">';
+
if(val == 'normal')
- setHelpText('firewall-optimization-options', 'The default optimization algorithm');
+ htext += 'The default optimization algorithm';
else if (val == 'high-latency')
- setHelpText('firewall-optimization-options', 'Used for eg. satellite links. Expires idle connections later than default');
+ htext += 'Used for eg. satellite links. Expires idle connections later than default';
else if (val == 'aggressive')
- setHelpText('firewall-optimization-options', 'Expires idle connections quicker. More efficient use of CPU and memory but can drop legitimate idle connections');
+ htext += 'Expires idle connections quicker. More efficient use of CPU and memory but can drop legitimate idle connections';
else if (val == 'conservative')
- setHelpText('firewall-optimization-options', 'Tries to avoid dropping any legitimate idle connections at the expense of increased memory usage and CPU utilization');
+ htext += 'Tries to avoid dropping any legitimate idle connections at the expense of increased memory usage and CPU utilization';
+
+ htext += '</font>';
+ setHelpText('firewall-optimization-options', htext);
}
// On click . .
OpenPOWER on IntegriCloud