summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-11-14 20:58:32 +0100
committerJo-Philipp Wich <jo@mein.io>2018-11-14 20:58:49 +0100
commit7e26fa89e9d0109b42c84e2674bbcbae530aa356 (patch)
tree3ece8665b5b5ae1a6328d98f28b6faa50efcce7b /modules/luci-base
parentceb342dc8de0235686bfceae7cd3948cb3c2f527 (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')
-rw-r--r--modules/luci-base/luasrc/cbi/datatypes.lua4
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 99113e0b7..b4206e98d 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