summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2010-08-13 10:30:58 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2010-08-13 10:30:58 -0300
commitec325889dc8a9a9ee4476bea6cb17cc4b63e28fe (patch)
treece8f82fcd5049a0239abb4e14f7e37721aa3d2e3
parent796713168488a551ecfe0736bc1ef86487e64056 (diff)
downloadpfsense-ec325889dc8a9a9ee4476bea6cb17cc4b63e28fe.zip
pfsense-ec325889dc8a9a9ee4476bea6cb17cc4b63e28fe.tar.gz
Remove unnecessary JS variable
-rw-r--r--usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js b/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js
index 9f21c2b..e75e192 100644
--- a/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js
+++ b/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js
@@ -1,7 +1,6 @@
<!--
var portsenabled = 1;
var dstenabled = 1;
-var showsource = 0;
function ext_change() {
if ((document.iform.srcbeginport.selectedIndex == 0) && portsenabled) {
@@ -59,7 +58,6 @@ function show_source() {
document.getElementById("srctable").style.display = '';
document.getElementById("showadvancedboxsrc").style.display = 'none';
- showsource = 1;
}
function check_for_aliases() {
@@ -119,7 +117,7 @@ function proto_change() {
}
if(document.iform.proto.selectedIndex >= 0 && document.iform.proto.selectedIndex <= 2) {
- document.getElementById("sprtable").style.display = showsource == 1 ? '':'none';
+ document.getElementById("sprtable").style.display = portsenabled == 1 ? '':'none';
document.getElementById("dprtr").style.display = '';
document.getElementById("lprtr").style.display = '';
} else {
OpenPOWER on IntegriCloud