summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-12-05 02:01:38 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-12-05 02:01:38 +0000
commitbf2a9c3c5e384f196693b92782cd66b0c9f29b86 (patch)
treedd1e7b62c69223da18817e4d25a377c5bbafe665
parentb375106e826efd8c20fb17c3997a9e2be259f0c4 (diff)
applications/luci-olsr: redirect to interface config when adding a new if
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua5
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 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"