diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-11-14 20:58:32 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-11-14 20:58:49 +0100 |
commit | 7e26fa89e9d0109b42c84e2674bbcbae530aa356 (patch) | |
tree | 3ece8665b5b5ae1a6328d98f28b6faa50efcce7b /modules/luci-base/luasrc/cbi | |
parent | ceb342dc8de0235686bfceae7cd3948cb3c2f527 (diff) |
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/cbi')
-rw-r--r-- | modules/luci-base/luasrc/cbi/datatypes.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |