Rewrote state based redirection

This commit is contained in:
Steven Barth 2008-11-02 13:26:41 +00:00
parent d600a2f209
commit 9d85bd73e5

View file

@ -522,6 +522,11 @@ function cbi(model, config)
end
end
if config.on_success_to and state and state > 0 then
luci.http.redirect(config.on_success_to)
return
end
if config.state_handler then
if not config.state_handler(state, maps) then
return