summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-02-25 07:14:22 -0300
committerRenato Botelho <renato@netgate.com>2016-02-25 07:14:22 -0300
commit611cc5ca74fdb320ad0e726d13a3ec2011dfa6ce (patch)
tree278c26c1fd6d22060aa837d9b208695bc370bec5 /src/usr/local/www/services_dhcpv6.php
parent0f0c4473053dcf06df873aea05069b387a7f8621 (diff)
downloadpfsense-611cc5ca74fdb320ad0e726d13a3ec2011dfa6ce.zip
pfsense-611cc5ca74fdb320ad0e726d13a3ec2011dfa6ce.tar.gz
Hide additional bootp options when it's disabled, fixes #5914
Diffstat (limited to 'src/usr/local/www/services_dhcpv6.php')
-rw-r--r--src/usr/local/www/services_dhcpv6.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/usr/local/www/services_dhcpv6.php b/src/usr/local/www/services_dhcpv6.php
index ce0dc13..ab69df5 100644
--- a/src/usr/local/www/services_dhcpv6.php
+++ b/src/usr/local/www/services_dhcpv6.php
@@ -1142,8 +1142,13 @@ events.push(function() {
hideInput('ldap', true);
hideInput('bootfile_url', true);
hideCheckbox('shownetboot', true);
- hideClass('adnloptions', <?php echo json_encode($noopts); ?>);
- hideInput('addrow', true);
+ if ($('#enable').prop('checked')) {
+ hideClass('adnloptions', <?php echo json_encode($noopts); ?>);
+ hideInput('addrow', <?php echo json_encode($noopts); ?>);
+ } else {
+ hideClass('adnloptions', true);
+ hideInput('addrow', true);
+ }
});
//]]>
OpenPOWER on IntegriCloud