From 79af8973e093abe301a1f462777580ca29efe577 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 17 May 2020 19:36:17 +0200 Subject: [PATCH] luci-mod-network: allow literal "auto" value for distance Fixes: #4050 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 01d5d5f92963d9596a3c0b669a7e8d87b64132d5) --- .../htdocs/luci-static/resources/view/network/wireless.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index c25acf40c4..baecab1b4e 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -886,7 +886,7 @@ return view.extend({ o.default = o.enabled; o = ss.taboption('advanced', form.Value, 'distance', _('Distance Optimization'), _('Distance to farthest network member in meters.')); - o.datatype = 'range(0,114750)'; + o.datatype = 'or(range(0,114750),"auto")'; o.placeholder = 'auto'; o = ss.taboption('advanced', form.Value, 'frag', _('Fragmentation Threshold')); -- 2.30.2