From cdcfb5502be8fd07bcf26d5cac8ac8c5d14ba209 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 16 Dec 2011 01:18:15 +0000 Subject: [PATCH] libs/web: implement "network" cbi datatype --- libs/web/htdocs/luci-static/resources/cbi.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index 123e8e1ab..d1e34d178 100644 --- a/libs/web/htdocs/luci-static/resources/cbi.js +++ b/libs/web/htdocs/luci-static/resources/cbi.js @@ -159,6 +159,11 @@ var cbi_validators = { return false; }, + 'network': function(v) + { + return cbi_validators.uciname(v) || cbi_validators.host(v); + }, + 'wpakey': function(v) { if( v.length == 64 ) -- 2.25.1