luci-app-openvpn: On apply/save redirect to OpenVPN overview page
This change will redirect on apply/save to the OpenVPN overview page. This is the default behaviour on LuCI. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
9881ad5a6b
commit
1986dc2751
2 changed files with 4 additions and 5 deletions
|
@ -703,10 +703,10 @@ local cts = { }
|
|||
local params = { }
|
||||
|
||||
local m = Map("openvpn")
|
||||
local p = m:section( SimpleSection )
|
||||
|
||||
m.redirect = luci.dispatcher.build_url("admin", "services", "openvpn")
|
||||
m.apply_on_parse = true
|
||||
|
||||
local p = m:section( SimpleSection )
|
||||
p.template = "openvpn/pageswitch"
|
||||
p.mode = "advanced"
|
||||
p.instance = arg[1]
|
||||
|
|
|
@ -95,11 +95,10 @@ local basicParams = {
|
|||
|
||||
|
||||
local m = Map("openvpn")
|
||||
local p = m:section( SimpleSection )
|
||||
|
||||
m.redirect = luci.dispatcher.build_url("admin", "services", "openvpn")
|
||||
m.apply_on_parse = true
|
||||
|
||||
|
||||
local p = m:section( SimpleSection )
|
||||
p.template = "openvpn/pageswitch"
|
||||
p.mode = "basic"
|
||||
p.instance = arg[1]
|
||||
|
|
Loading…
Reference in a new issue