unbound: fix JS to enable/disable interface selectors

If unbound is enabled/disabled globally, the interface selectors should be
enabled/disabled as well.
This commit is contained in:
Manuel Faux 2015-12-07 15:09:14 +01:00
parent 878eed3f65
commit 12bc95c40a

View File

@ -175,6 +175,7 @@ function enable_change(enable_over) {
var endis;
endis = !(jQuery('#enable').is(":checked") || enable_over);
jQuery("#active_interface,#outgoing_interface,#dnssec,#forwarding,#regdhcp,#regdhcpstatic,#dhcpfirst,#port,#txtsupport,#custom_options").prop('disabled', endis);
jQuery("#active_interface,#outgoing_interface").selectpicker("refresh");
}
function show_advanced_dns() {
jQuery("#showadv").show();