summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-09-16 19:25:48 +0000
committerBill Marquette <billm@pfsense.org>2005-09-16 19:25:48 +0000
commitcd0545aa090470c90a3912c238d013b3c74f7c0a (patch)
tree556783c92dfc43490238fcc10c77d33c386feeee /usr
parent23bfcd9f11aa92b7186ebf937f87035616faab2f (diff)
downloadpfsense-cd0545aa090470c90a3912c238d013b3c74f7c0a.zip
pfsense-cd0545aa090470c90a3912c238d013b3c74f7c0a.tar.gz
Fix system_advanced.php javascript
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/javascript/system_advanced/system_advanced.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/usr/local/www/javascript/system_advanced/system_advanced.js b/usr/local/www/javascript/system_advanced/system_advanced.js
new file mode 100644
index 0000000..1512d94
--- /dev/null
+++ b/usr/local/www/javascript/system_advanced/system_advanced.js
@@ -0,0 +1,28 @@
+function enable_change(enable_over) {
+ if (document.iform.ipv6nat_enable.checked || enable_over) {
+ document.iform.ipv6nat_ipaddr.disabled = 0;
+ document.iform.schedulertype.disabled = 0;
+ } else {
+ document.iform.ipv6nat_ipaddr.disabled = 1;
+ }
+}
+
+var descs=new Array(5);
+descs[0]="as the name says, it's the normal optimization algorithm";
+descs[1]="used for high latency links, such as satellite links. Expires idle connections later than default";
+descs[2]="expires idle connections quicker. More efficient use of CPU and memory but can drop legitimate connections";
+descs[3]="tries to avoid dropping any legitimate connections at the expense of increased memory usage and CPU utilization.";
+
+function update_description(itemnum) {
+ document.forms[0].info.value=descs[itemnum];
+
+}
+
+function openwindow(url) {
+ var oWin = window.open(url,"pfSensePop","width=620,height=400,top=150,left=150");
+ if (oWin==null || typeof(oWin)=="undefined") {
+ return false;
+ } else {
+ return true;
+ }
+}
OpenPOWER on IntegriCloud