From 01d5d5f92963d9596a3c0b669a7e8d87b64132d5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 17 May 2020 19:36:17 +0200 Subject: luci-mod-network: allow literal "auto" value for distance Fixes: #4050 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/network/wireless.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-mod-network/htdocs') 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 5d4b3cd70c..ca0cdf6152 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 @@ -893,7 +893,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')); -- cgit v1.2.3