Fixes #1413.
authorJo-Philipp Wich <jo@mein.io>
Wed, 25 Oct 2017 12:23:45 +0000 (14:23 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 25 Oct 2017 12:40:05 +0000 (14:40 +0200)
Reported-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit fbe7f90eed4545e4b23a940a47043a2001625429)

modules/luci-base/htdocs/luci-static/resources/cbi.js

index 8e66cbc380d850dec178945e4cc6f53400626aaf..0a362affba18868a16c7b6e37bb7acda811d2b9a 100644 (file)
@@ -189,7 +189,7 @@ var cbi_validators = {
        {
                return cbi_validators.hostname.apply(this) ||
                        ((ipv4only != 1) && cbi_validators.ipaddr.apply(this)) ||
-                       ((ipv4only == 1) && cb_validators.ip4addr.apply(this));
+                       ((ipv4only == 1) && cbi_validators.ip4addr.apply(this));
        },
 
        'hostname': function()