diff --git a/plugins/dynamix/Eth0.page b/plugins/dynamix/Eth0.page index ed0addae5..2b97cca5b 100644 --- a/plugins/dynamix/Eth0.page +++ b/plugins/dynamix/Eth0.page @@ -350,15 +350,15 @@ function disableForm(form) { $(form).find('input[name^="DESCRIPTION"],input[name^="#"]').prop('disabled',false); } var stopEvent = false; -function exitCode(form,key) { +function noRun(form) { + var arg1 = $(form).find('input[name="#arg[1]"]'); + if (arg1.val()=='') arg1.val('none'); + stopEvent = true; +} +function doRun(form) { if (stopEvent) {stopEvent = false; return;} var arg1 = $(form).find('input[name="#arg[1]"]'); - if (!key) { - arg1.val($(form).find('input[name="#section"]').val()); - } else { - if (arg1.val()=='') arg1.val('none'); - stopEvent = true; - } + arg1.val($(form).find('input[name="#section"]').val()); } function portcheck_eth0() { $.post('/webGui/include/CheckPort.php',{port:'eth0'},function(text) { @@ -437,7 +437,7 @@ $(function() { watchDHCP.start(); }); -