From bf2a9c3c5e384f196693b92782cd66b0c9f29b86 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 5 Dec 2010 02:01:38 +0000 Subject: applications/luci-olsr: redirect to interface config when adding a new if --- applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'applications/luci-olsr/luasrc/model/cbi') diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua index 9db56b5393..eda5328cf5 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" -- cgit v1.2.3