luci-mod-network: allow literal "auto" value for distance
authorJo-Philipp Wich <jo@mein.io>
Sun, 17 May 2020 17:36:17 +0000 (19:36 +0200)
committerPaul Spooren <mail@aparcar.org>
Tue, 28 Sep 2021 18:58:09 +0000 (08:58 -1000)
Fixes: #4050
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 01d5d5f92963d9596a3c0b669a7e8d87b64132d5)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index c25acf40c4412e0bd66a10f32b1965d5d9095a4b..baecab1b4e1bd57a42274ccdeca3814d2dd69f94 100644 (file)
@@ -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'));