summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-20 12:38:32 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-20 12:38:32 +0000
commit71fbed1bc89538e4ccf28305139b77abc6f684a9 (patch)
treed165ac71d463104d704f0fb0c90b65d4a18ed802 /applications
parent8193a249f19526adfb9809eed666fa211b18b9b5 (diff)
applications/luci-firewall: make rules and redirections sortable
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
index d40de7cdb..baced4a88 100644
--- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
+++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
@@ -113,6 +113,7 @@ s = m:section(TypedSection, "redirect", translate("Redirections"))
s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
+s.sortable = true
s.extedit = ds.build_url("admin", "network", "firewall", "redirect", "%s")
function s.create(self, section)
@@ -191,6 +192,7 @@ end
s = m:section(TypedSection, "rule", translate("Rules"))
s.addremove = true
s.anonymous = true
+s.sortable = true
s.template = "cbi/tblsection"
s.extedit = ds.build_url("admin", "network", "firewall", "rule", "%s")
s.defaults.target = "ACCEPT"