diff options
author | Renato Botelho <renato@netgate.com> | 2016-02-25 07:14:22 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-02-25 07:14:22 -0300 |
commit | 611cc5ca74fdb320ad0e726d13a3ec2011dfa6ce (patch) | |
tree | 278c26c1fd6d22060aa837d9b208695bc370bec5 /src/usr/local/www/services_dhcpv6.php | |
parent | 0f0c4473053dcf06df873aea05069b387a7f8621 (diff) | |
download | pfsense-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.php | 9 |
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); + } }); //]]> |