From: Jo-Philipp Wich Date: Wed, 14 Nov 2018 19:58:32 +0000 (+0100) Subject: luci-base: datatypes: add "unique" dummy validator X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e26fa89e9d0109b42c84e2674bbcbae530aa356;p=project%2Fluci.git luci-base: datatypes: add "unique" dummy validator Add a dummy validator for the server side so that we can start using unique in client side JS code. Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/cbi/datatypes.lua b/modules/luci-base/luasrc/cbi/datatypes.lua index 99113e0b7a..b4206e98df 100644 --- a/modules/luci-base/luasrc/cbi/datatypes.lua +++ b/modules/luci-base/luasrc/cbi/datatypes.lua @@ -460,3 +460,7 @@ function dateyyyymmdd(val) end return false end + +function unique(val) + return true +end