summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
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