From 86357dbde81ac1f75bc602a5fc4eccb8c2e47442 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 6 May 2023 01:07:14 +0200 Subject: [PATCH] Network settings: fix bug in description field --- plugins/dynamix/Eth0.page | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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(); }); -
+ @@ -450,7 +450,7 @@ $(function() { _(Interface description)_: : - " oninput="exitCode(this.form,true)"> + " oninput="noRun(this.form)"> :eth_interface_description_help: @@ -669,7 +669,7 @@ _(Enable VLANs)_: