diff options
author | Phil Davis <phil.davis@inf.org> | 2016-05-11 13:49:16 +0930 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-05-11 13:49:16 +0930 |
commit | 685a06f2f7fa705645654eb4c786d6eb971285e6 (patch) | |
tree | 52ff6ad208e992846b959ee3793c8d68bc33a59c /src/usr | |
parent | 01142f51c8baff3f4d395b31f894f22811ea0158 (diff) | |
download | pfsense-685a06f2f7fa705645654eb4c786d6eb971285e6.zip pfsense-685a06f2f7fa705645654eb4c786d6eb971285e6.tar.gz |
Hide CIDR for alias types that do not use it
Suggested/discussed in forum
https://forum.pfsense.org/index.php?topic=111593.0
Diffstat (limited to 'src/usr')
-rwxr-xr-x | src/usr/local/www/firewall_aliases_edit.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_aliases_edit.php b/src/usr/local/www/firewall_aliases_edit.php index 90b84eb..f762fe8 100755 --- a/src/usr/local/www/firewall_aliases_edit.php +++ b/src/usr/local/www/firewall_aliases_edit.php @@ -774,8 +774,12 @@ events.push(function() { disable_subnets = (tab == 'host') || (tab == 'port') || (tab == 'url') || (tab == 'url_ports'); + // Enable/disable address_subnet so its value gets POSTed or not, as appropriate. $("[id^='address_subnet']").prop("disabled", disable_subnets); + // Show or hide the slash plus address_subnet field so the user does not even see it if it is not relevant. + hideMask('address_subnet', disable_subnets); + // Set the help text to match the tab var helparray = <?=json_encode($help);?>; $('.helptext').html(helparray[tab]); |