diff options
author | Manuel Munz <freifunk@somakoma.de> | 2012-11-10 20:55:50 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2012-11-10 20:55:50 +0000 |
commit | 7b7030629c4d55557b368a292d7f3e3d14b1923b (patch) | |
tree | e60dfd01f3e9dff541ab6ad14fda9c2f02aa9667 /applications/luci-qos/luasrc/model/cbi/qos/qos.lua | |
parent | 4e04e353fe91107d27046f93d63aa9aa92418ce8 (diff) |
Add some more datatype checks, patch by Eugene C., #499
Diffstat (limited to 'applications/luci-qos/luasrc/model/cbi/qos/qos.lua')
-rw-r--r-- | applications/luci-qos/luasrc/model/cbi/qos/qos.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/luci-qos/luasrc/model/cbi/qos/qos.lua b/applications/luci-qos/luasrc/model/cbi/qos/qos.lua index 98e9a25070..1af3bdbbd3 100644 --- a/applications/luci-qos/luasrc/model/cbi/qos/qos.lua +++ b/applications/luci-qos/luasrc/model/cbi/qos/qos.lua @@ -35,9 +35,11 @@ s:option(Flag, "overhead", translate("Calculate overhead")) s:option(Flag, "halfduplex", translate("Half-duplex")) -s:option(Value, "download", translate("Download speed (kbit/s)")) +dl = s:option(Value, "download", translate("Download speed (kbit/s)")) +dl.datatype = "and(uinteger,min(1))" -s:option(Value, "upload", translate("Upload speed (kbit/s)")) +ul = s:option(Value, "upload", translate("Upload speed (kbit/s)")) +ul.datatype = "and(uinteger,min(1))" s = m:section(TypedSection, "classify", translate("Classification Rules")) s.template = "cbi/tblsection" |