From e203a8d8c29ec2e538552aa03b667baae8318aa7 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Wed, 7 Jan 2026 12:20:47 +0100 Subject: [PATCH] fix: Add cyber-checkbox styling to SecuBox settings checkboxes (v0.6.0-r13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add cyber-checkbox class to all checkbox inputs after form render - Ensures checkboxes are visible and properly styled - Fixes invisible checkboxes for Enable SecuBox, Debug Mode, etc. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../luci-static/resources/view/secubox/settings.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/luci-app-secubox/htdocs/luci-static/resources/view/secubox/settings.js b/luci-app-secubox/htdocs/luci-static/resources/view/secubox/settings.js index 32720f15..94a91f81 100644 --- a/luci-app-secubox/htdocs/luci-static/resources/view/secubox/settings.js +++ b/luci-app-secubox/htdocs/luci-static/resources/view/secubox/settings.js @@ -434,6 +434,16 @@ return view.extend({ var formWrapper = E('div', { 'class': 'secubox-settings-form' }, formElement); container.appendChild(formWrapper); this.bindStatusChip(formElement, statusChip); + + // Add cyber-checkbox class to all checkboxes for proper styling + var checkboxes = formWrapper.querySelectorAll('input[type="checkbox"]'); + checkboxes.forEach(function(checkbox) { + var wrapper = checkbox.parentNode; + if (wrapper && wrapper.classList) { + wrapper.classList.add('cyber-checkbox'); + } + }); + return container; }, this)); },