luci-app-p910nd: retain unchecked value for bidirectionality
authorPaul Donald <redacted>
Fri, 6 Mar 2026 17:47:49 +0000 (18:47 +0100)
committerPaul Donald <redacted>
Fri, 6 Mar 2026 17:48:01 +0000 (18:48 +0100)
Some devices might identify incorrectly as having bidi support
so unchecking the option should retain a '0' value.

Signed-off-by: Paul Donald <redacted>
applications/luci-app-p910nd/htdocs/luci-static/resources/view/p910nd.js

index a55fefd233bd87ab7c86629a3c05c9c3b310c0e6..a0edc5cd504f519e8ade2c8bdb1bd70ee18bac73 100644 (file)
@@ -142,6 +142,7 @@ return view.extend({
                        _('Whether this print port is bi-directional.')  + '<br />' +
                        _('Note: USB hotplug correctly detects this.'));
                o.modalonly = true;
+               o.rmempty = false;
 
                o = s.option(form.Flag, 'runas_root', _('Run as root'),
                        _('Overrides default of %s.').format('<code>user p910nd, group lp</code>'));
git clone https://git.99rst.org/PROJECT