summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua')
-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"