summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-05-11 13:49:16 +0930
committerPhil Davis <phil.davis@inf.org>2016-05-11 13:49:16 +0930
commit685a06f2f7fa705645654eb4c786d6eb971285e6 (patch)
tree52ff6ad208e992846b959ee3793c8d68bc33a59c /src/usr/local/www/firewall_aliases_edit.php
parent01142f51c8baff3f4d395b31f894f22811ea0158 (diff)
downloadpfsense-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/local/www/firewall_aliases_edit.php')
-rwxr-xr-xsrc/usr/local/www/firewall_aliases_edit.php4
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]);
OpenPOWER on IntegriCloud