Merge pull request #203 from bergware/6.4-wip

Fixed dhcp field selection
This commit is contained in:
tom mortensen
2017-11-13 21:23:32 -08:00
committed by GitHub

View File

@@ -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;