summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-05-17 19:36:17 +0200
committerJo-Philipp Wich <jo@mein.io>2020-05-17 19:36:17 +0200
commit01d5d5f92963d9596a3c0b669a7e8d87b64132d5 (patch)
tree743cb822e6dff2337cb18572bfc6225621b4cf9e /modules/luci-mod-network
parentc7686d4b3c660dfe44eb2decbedce89c0873649e (diff)
luci-mod-network: allow literal "auto" value for distance
Fixes: #4050 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js2
1 files changed, 1 insertions, 1 deletions
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 5d4b3cd70..ca0cdf615 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'));