applications/luci-olsr: redirect to interface config when adding a new if
This commit is contained in:
parent
b375106e82
commit
bf2a9c3c5e
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue