Fixed: force DNS server selection to static when using static IP assignment

This commit is contained in:
bergware
2017-11-16 13:56:15 +01:00
parent 59b240f1cf
commit 16e3aeee9f
+4 -1
View File
@@ -235,7 +235,10 @@ function checkNetworkSettings(form,index,open) {
privacy.prop('disabled',!disabled); if (!open) privacy.val(disabled ? 0 : 2);
}
if (dns && index==0) {
if (!open) form.DHCP_KEEPRESOLV.value = disabled ? 'no' : 'yes';
if (!open) {
form.DHCP_KEEPRESOLV.value = disabled ? 'no' : 'yes';
form.DHCP_KEEPRESOLV.disabled = !disabled;
}
checkDNSSettings(form);
}
}