From f7710ebc764ce5debfd6b246d3422f5ca9a4ac72 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 7 Mar 2025 10:39:45 +0200 Subject: [PATCH] Fix a few CodeQL issues Signed-off-by: XhmikosR --- scripts/js/footer.js | 4 ++-- scripts/js/settings-advanced.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/js/footer.js b/scripts/js/footer.js index bfa7cb71..7b8397c5 100644 --- a/scripts/js/footer.js +++ b/scripts/js/footer.js @@ -220,7 +220,7 @@ function initCheckboxRadioStyle() { iCheckStyle.on("change", function () { var themename = $(this).val(); localStorage.setItem("theme_icheck", themename); - applyCheckboxRadioStyle(themename); + applyCheckboxRadioStyle(); }); } } @@ -586,7 +586,7 @@ function updateVersionInfo() { } // Display update information of individual components only if we are not running in a Docker container - if ((!isDocker || (isDocker && v.name === "Docker Tag")) && updateComponentAvailable) { + if ((!isDocker || v.name === "Docker Tag") && updateComponentAvailable) { $("#versions").append( "
  • " + v.name + diff --git a/scripts/js/settings-advanced.js b/scripts/js/settings-advanced.js index 3d7e4332..413ac280 100644 --- a/scripts/js/settings-advanced.js +++ b/scripts/js/settings-advanced.js @@ -323,7 +323,7 @@ function createDynamicConfigTabs() { // Dynamically fill the tabs with config topics Object.keys(data.config).forEach(function (topic) { var value = data.config[topic]; - generateRow(topic, topic, value, data); + generateRow(topic, topic, value); }); $("#advanced-overlay").hide();