luci-app-firewall: use maxlength datatype instead of validate function
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 17 Sep 2015 07:45:53 +0000 (10:45 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Thu, 17 Sep 2015 08:02:13 +0000 (11:02 +0300)
commitedc58332f0bc93a637d1b44689849e9cef29596d
treeeebd679ebc38ca4416deeb8a688a2ce0ad7f10f2
parentf3f0de3e5eaaf7af727f1708b6d20b9ad6b10507
luci-app-firewall: use maxlength datatype instead of validate function

Switch the zonename validation to use
a compound datatype "and(uciname,maxlength(14))"
instead of a separate 'validate' function.

Remove the unnecessary function that was introduced by 34e875b

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua