mirror of
https://github.com/unraid/webgui.git
synced 2026-02-16 22:18:46 -06:00
Merge pull request #203 from bergware/6.4-wip
Fixed dhcp field selection
This commit is contained in:
@@ -195,7 +195,7 @@ function selectProtocol(form,port,index) {
|
||||
var i = $(this).attr('name').split(':')[1];
|
||||
var net4 = $('.'+port+'-ipv4-'+i);
|
||||
var net6 = $('.'+port+'-ipv6-'+i);
|
||||
var dhcp = $('select[name="USE_DHCP:'+i+'"]').val();
|
||||
var dhcp = $(form).find('select[name="USE_DHCP:'+i+'"]').val();
|
||||
if (dhcp) switch (protocol) {
|
||||
case 'ipv4': net4.show(); net6.hide(); break;
|
||||
case 'ipv6': net4.hide(); net6.show(); break;
|
||||
|
||||
Reference in New Issue
Block a user