diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-05 02:01:38 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-05 02:01:38 +0000 |
commit | bf2a9c3c5e384f196693b92782cd66b0c9f29b86 (patch) | |
tree | dd1e7b62c69223da18817e4d25a377c5bbafe665 /applications/luci-olsr/luasrc/model/cbi | |
parent | b375106e826efd8c20fb17c3997a9e2be259f0c4 (diff) |
applications/luci-olsr: redirect to interface config when adding a new if
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi')
-rw-r--r-- | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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" |