diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-08 10:13:57 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-08 10:13:57 -0400 |
commit | 03b8c2844d8885d0a77bd91883f729c6ab6e7d88 (patch) | |
tree | c3c69f1446ef960cec9a27588d1fcc1c90026b02 /src/usr/local | |
parent | cddc70a20177dd4d2d622f6dd8e9e08f181774c8 (diff) | |
download | pfsense-03b8c2844d8885d0a77bd91883f729c6ab6e7d88.zip pfsense-03b8c2844d8885d0a77bd91883f729c6ab6e7d88.tar.gz |
Fixed #5015
subnet mask not depends on type selector (single/network) only
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/firewall_virtual_ip_edit.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr/local/www/firewall_virtual_ip_edit.php b/src/usr/local/www/firewall_virtual_ip_edit.php index c92ace9..edac6d8 100644 --- a/src/usr/local/www/firewall_virtual_ip_edit.php +++ b/src/usr/local/www/firewall_virtual_ip_edit.php @@ -515,7 +515,6 @@ events.push(function(){ if(mode == 'ipalias') { $('#address_note').html("<?=$ipaliashelp?>"); - disableInput('subnet_bits', false); $('#type').val('single'); } @@ -524,19 +523,19 @@ events.push(function(){ disableInput('vhid', false); disableInput('advbase', false); disableInput('advskew', false); - disableInput('subnet_bits', false); disableInput('password', false); $('#type').val('single'); } else if(mode == 'proxyarp') { $('#address_note').html("<?=$proxyarphelp?>"); disableInput('type', false); - disableInput('subnet_bits', $('#type').val() == 'single'); } else { $('#address_note').html(''); disableInput('type', false); } + + disableInput('subnet_bits', ($('#type').val() == 'single')); } // When radio buttons are clicked . . |