From: Jo-Philipp Wich Date: Thu, 20 Jan 2011 12:38:32 +0000 (+0000) Subject: applications/luci-firewall: make rules and redirections sortable X-Git-Tag: 0.11.0~2343 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=71fbed1bc89538e4ccf28305139b77abc6f684a9 applications/luci-firewall: make rules and redirections sortable --- 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"