Hide additional bootp options when it's disabled, fixes #5914

This commit is contained in:
Renato Botelho 2016-02-25 07:14:22 -03:00
parent 0f0c447305
commit 611cc5ca74

View File

@ -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);
}
});
//]]>