projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
modules/freifunk: Add minlength datatype to location, #444
[project/luci.git]
/
modules
/
freifunk
/
luasrc
/
model
/
cbi
/
freifunk
/
basics.lua
diff --git
a/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
b/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
index
fa7cfec
..
bbf7c56
100644
(file)
--- a/
modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
+++ b/
modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
@@
-47,6
+47,7
@@
hn.datatype = "hostname"
loc = b:option(Value, "location", translate("Location"))
loc.rmempty = false
+loc.datatype = "minlength(1)"
lat = b:option(Value, "latitude", translate("Latitude"), translate("e.g.") .. " 48.12345")
lat.datatype = "float"