Fixed DNS server assignment follows IP address assignment

This commit is contained in:
bergware
2017-03-26 19:55:07 +02:00
parent f3b22b8ce1
commit 882fbab0b8
+1 -1
View File
@@ -144,7 +144,7 @@ function checkNetworkSettings(form,index) {
}
if (index==0 && form.GATEWAY !== undefined) {form.GATEWAY.disabled = disabled; form.GATEWAY.required = !disabled;}
if (dns) {
form.DHCP_KEEPRESOLV.value = 'yes';
form.DHCP_KEEPRESOLV.value = disabled ? 'no' : 'yes';
form.DHCP_KEEPRESOLV.disabled = !disabled;
checkDNSSettings(form);
}