Commit 12bc95c4 authored by Manuel Faux's avatar Manuel Faux

unbound: fix JS to enable/disable interface selectors

If unbound is enabled/disabled globally, the interface selectors should be
enabled/disabled as well.
parent 878eed3f
...@@ -175,6 +175,7 @@ function enable_change(enable_over) { ...@@ -175,6 +175,7 @@ function enable_change(enable_over) {
var endis; var endis;
endis = !(jQuery('#enable').is(":checked") || enable_over); 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,#dnssec,#forwarding,#regdhcp,#regdhcpstatic,#dhcpfirst,#port,#txtsupport,#custom_options").prop('disabled', endis);
jQuery("#active_interface,#outgoing_interface").selectpicker("refresh");
} }
function show_advanced_dns() { function show_advanced_dns() {
jQuery("#showadv").show(); jQuery("#showadv").show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment