applications/luci-olsr: redirect to interface config when adding a new if

This commit is contained in:
Jo-Philipp Wich 2010-12-05 02:01:38 +00:00
parent b375106e82
commit bf2a9c3c5e

View file

@ -273,6 +273,11 @@ ifs.anonymous = true
ifs.extedit = luci.dispatcher.build_url("admin/services/olsrd/iface/%s")
ifs.template = "cbi/tblsection"
function ifs.create(...)
local sid = TypedSection.create(...)
luci.http.redirect(ifs.extedit % sid)
end
ign = ifs:option(Flag, "ignore", translate("Enable"))
ign.enabled = "0"
ign.disabled = "1"