From 8ce7b1eebe749ea5aca2e3e29a3b63ea254317fc Mon Sep 17 00:00:00 2001 From: Liangbin Lian Date: Thu, 26 Jun 2025 17:09:01 +0800 Subject: [PATCH] luci-app-package-manager: fix 'autoremove' checkbox uneditable In HTML, the following lines of code are equivalent: ``` ``` If you want to cancel the 'disabled' flag, you must completely remove it from the HTML instead of assigning a value. Signed-off-by: Liangbin Lian (cherry picked from commit 8b5dfabdf3b4f929ea5e4bbd9350e930c10e8ad3) --- .../htdocs/luci-static/resources/view/package-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js b/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js index 444bd8f63b..8a70b4bd29 100644 --- a/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js +++ b/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js @@ -970,7 +970,7 @@ function handleRemove(ev) desc || '', E('div', { 'style': 'display:flex; justify-content:space-between; flex-wrap:wrap' }, [ E('label', { 'class': 'cbi-checkbox', 'style': 'float:left' }, [ - E('input', { 'id': 'autoremove-cb', 'type': 'checkbox', 'checked': 'checked', 'name': 'autoremove', 'disabled': isReadonlyView || L.hasSystemFeature('apk') }), ' ', + E('input', { 'id': 'autoremove-cb', 'type': 'checkbox', 'checked': 'checked', 'name': 'autoremove', 'disabled': isReadonlyView || L.hasSystemFeature('apk') || null }), ' ', E('label', { 'for': 'autoremove-cb' }), ' ', _('Automatically remove unused dependencies') ]), -- 2.30.2