From 5b35c47360e18bfa6e4bfc5fc158f72c97e4182d Mon Sep 17 00:00:00 2001 From: JeLuF Date: Mon, 19 Jun 2023 21:50:56 +0200 Subject: [PATCH 1/2] Fix saving of network settings --- ui/media/js/parameters.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/media/js/parameters.js b/ui/media/js/parameters.js index 2f915eeb..27cfe6fc 100644 --- a/ui/media/js/parameters.js +++ b/ui/media/js/parameters.js @@ -649,6 +649,7 @@ async function getSystemInfo() { } saveSettingsBtn.addEventListener("click", function() { + console.log("listenPortField.value", listenPortField.value) if (listenPortField.value == "") { alert("The network port field must not be empty.") return @@ -664,7 +665,8 @@ saveSettingsBtn.addEventListener("click", function() { update_branch: updateBranch, } - Array.from(parametersTable.children).forEach((parameterRow) => { + //Array.from(parametersTable.children).forEach((parameterRow) => { + document.querySelectorAll('#system-settings [data-setting-id]').forEach((parameterRow) => { if (parameterRow.dataset.saveInAppConfig === "true") { const parameterElement = document.getElementById(parameterRow.dataset.settingId) || From 65bb01892f6286eb5b47dd58511f3f9ca0b9ecd5 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Mon, 19 Jun 2023 21:58:58 +0200 Subject: [PATCH 2/2] remove old code --- ui/media/js/parameters.js | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/media/js/parameters.js b/ui/media/js/parameters.js index 27cfe6fc..50c6682b 100644 --- a/ui/media/js/parameters.js +++ b/ui/media/js/parameters.js @@ -665,7 +665,6 @@ saveSettingsBtn.addEventListener("click", function() { update_branch: updateBranch, } - //Array.from(parametersTable.children).forEach((parameterRow) => { document.querySelectorAll('#system-settings [data-setting-id]').forEach((parameterRow) => { if (parameterRow.dataset.saveInAppConfig === "true") { const parameterElement =