From 9ab2a9896152b40e7a4cd04e3561080ebd22541b Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 13 Nov 2017 21:48:58 +0100 Subject: [PATCH] Fixed dhcp field selection --- plugins/dynamix/Eth0.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/Eth0.page b/plugins/dynamix/Eth0.page index 8ce2a4753..1492870e6 100644 --- a/plugins/dynamix/Eth0.page +++ b/plugins/dynamix/Eth0.page @@ -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;