Make protocol selection in Firewall and QoS a combobox
authorSteven Barth <steven@midlink.org>
Thu, 8 Jan 2009 21:19:11 +0000 (21:19 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 8 Jan 2009 21:19:11 +0000 (21:19 +0000)
closes #29

applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
applications/luci-qos/luasrc/model/cbi/qos/qos.lua

index d8fe59c..72a36f9 100644 (file)
@@ -39,7 +39,7 @@ luci.model.uci.cursor():foreach("firewall", "zone",
                oface:value(section.name)
        end)
 
-proto = s:option(ListValue, "proto", translate("protocol"))
+proto = s:option(Value, "proto", translate("protocol"))
 proto.optional = true
 proto:value("")
 proto:value("tcpudp", "TCP+UDP")
index e051347..707d98a 100644 (file)
@@ -73,7 +73,7 @@ p2p:value("gnu", "Gnutella")
 p2p:value("kazaa", "Kazaa")
 p2p.rmempty = true
 
-p = s:option(ListValue, "proto", translate("protocol"))
+p = s:option(Value, "proto", translate("protocol"))
 p:value("", translate("all"))
 p:value("tcp", "TCP")
 p:value("udp", "UDP")