From 611cc5ca74fdb320ad0e726d13a3ec2011dfa6ce Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 25 Feb 2016 07:14:22 -0300 Subject: Hide additional bootp options when it's disabled, fixes #5914 --- src/usr/local/www/services_dhcpv6.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www/services_dhcpv6.php') 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', ); - hideInput('addrow', true); + if ($('#enable').prop('checked')) { + hideClass('adnloptions', ); + hideInput('addrow', ); + } else { + hideClass('adnloptions', true); + hideInput('addrow', true); + } }); //]]> -- cgit v1.1