From: Jo-Philipp Wich Date: Sun, 5 Dec 2010 02:01:38 +0000 (+0000) Subject: applications/luci-olsr: redirect to interface config when adding a new if X-Git-Tag: 0.10.0~314 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bf2a9c3c5e384f196693b92782cd66b0c9f29b86;p=oweals%2Fluci.git applications/luci-olsr: redirect to interface config when adding a new if --- diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index 9db56b539..eda5328cf 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua @@ -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"