summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-05-11 20:09:52 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-05-11 20:09:52 -0600
commit1122a892f2af418daa5964d41d1d942fc89d470e (patch)
tree8b32bec54759695cdf4036b6ea7ab0cf0138504a /usr/local/www/javascript
parent3e3582a9a63e1564f90c6e5dc6e77b3e0a781ce8 (diff)
downloadpfsense-1122a892f2af418daa5964d41d1d942fc89d470e.zip
pfsense-1122a892f2af418daa5964d41d1d942fc89d470e.tar.gz
Fix source input validation, saving, and the "View the NAT rule" link on linked filter rules. Ticket #586
Diffstat (limited to 'usr/local/www/javascript')
-rw-r--r--usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
index 2aefe92..38b9363 100644
--- a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
+++ b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js
@@ -3,13 +3,13 @@ var portsenabled = 1;
var editenabled = 1;
function ext_change() {
- if ((document.iform.srcbeginport.selectedIndex == 0) && portsenabled) {
+ if ((document.iform.srcbeginport.selectedIndex == 0) && portsenabled && editenabled) {
document.iform.srcbeginport_cust.disabled = 0;
} else {
document.iform.srcbeginport_cust.value = "";
document.iform.srcbeginport_cust.disabled = 1;
}
- if ((document.iform.srcendport.selectedIndex == 0) && portsenabled) {
+ if ((document.iform.srcendport.selectedIndex == 0) && portsenabled && editenabled) {
document.iform.srcendport_cust.disabled = 0;
} else {
document.iform.srcendport_cust.value = "";
@@ -34,9 +34,9 @@ function ext_change() {
document.iform.dstbeginport.disabled = 1;
document.iform.dstendport.disabled = 1;
} else {
- document.iform.srcbeginport.disabled = 0;
- document.iform.srcendport.disabled = 0;
if( editenabled ) {
+ document.iform.srcbeginport.disabled = 0;
+ document.iform.srcendport.disabled = 0;
document.iform.dstbeginport.disabled = 0;
document.iform.dstendport.disabled = 0;
}
OpenPOWER on IntegriCloud