From 8007925cd20f22cd792928ff3607b4a7195ea132 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 18 Sep 2020 09:24:33 +0100 Subject: [PATCH] give the two radio buttons in custom select each an ID, and exclude them when theming radio buttons Signed-off-by: Adam Warner --- scripts/pi-hole/js/footer.js | 2 +- scripts/pi-hole/php/footer.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index c9cd2921..1f41e202 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -133,7 +133,7 @@ function initCheckboxRadioStyle() { function applyCheckboxRadioStyle(style) { boxsheet.attr("href", getCheckboxURL(style)); - var sel = $("input[type='radio'],input[type='checkbox']"); + var sel = $("input[type='radio'],input[type='checkbox']").not("#selSec").not("#selMin"); sel.parent().removeClass(); sel.parent().addClass("icheck-" + style); } diff --git a/scripts/pi-hole/php/footer.php b/scripts/pi-hole/php/footer.php index 1df5f1d8..60683bf8 100644 --- a/scripts/pi-hole/php/footer.php +++ b/scripts/pi-hole/php/footer.php @@ -22,10 +22,10 @@