GUI: Basic: DDNS: hide 'Custom IP address' when 'IP address -> Custom IP Address...' is set but given Service is disabled

arm-master
pedro 9 months ago
parent 9bab784bbb
commit 29e3f4ab5a

@ -195,8 +195,8 @@ function verifyFields(focused, quiet) {
b = E('_f_ddnsx'+i+'_wanip').value == 'custom';
e = E('_f_ddnsx'+i+'_wanip');
elem.display(PR('_f_custom_ip'+i), b);
if ((b) && (!v_ip('_f_custom_ip'+i, quiet)))
elem.display(PR('_f_custom_ip'+i), b && enabled);
if ((b) && enabled && (!v_ip('_f_custom_ip'+i, quiet)))
ok = 0;
else
ferror.clear(e);

Loading…
Cancel
Save