projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceb342d
)
luci-base: datatypes: add "unique" dummy validator
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 14 Nov 2018 19:58:32 +0000
(20:58 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Wed, 14 Nov 2018 19:58:49 +0000
(20:58 +0100)
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>
modules/luci-base/luasrc/cbi/datatypes.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/cbi/datatypes.lua
b/modules/luci-base/luasrc/cbi/datatypes.lua
index 99113e0b7a65b7317019b46d5d9a01cdd0ba839b..b4206e98df3e118e4c646f239dfe80c0d08ba2ee 100644
(file)
--- 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