summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/dispatcher.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-04-03 18:08:25 +0000
committerSteven Barth <steven@midlink.org>2009-04-03 18:08:25 +0000
commitf3deef9ec570d49795346516d34c1b42fb416fde (patch)
treefe1a6cb694c4287b6dd4b671f6dca0ffa6cea81f /libs/web/luasrc/dispatcher.lua
parentbaab33794bb53375a7eddac72dace20b34db7862 (diff)
Backport Skip-Button support
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r--libs/web/luasrc/dispatcher.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 89fa0d22fc..565e995d19 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -640,9 +640,7 @@ local function _cbi(self, ...)
local state = nil
for i, res in ipairs(maps) do
- if config.autoapply then
- res.autoapply = config.autoapply
- end
+ res.flow = config
local cstate = res:parse()
if cstate and (not state or cstate < state) then
state = cstate
@@ -682,7 +680,7 @@ local function _cbi(self, ...)
end
end
if not config.nofooter then
- tpl.render("cbi/footer", {pageaction=pageaction, state = state, autoapply = config.autoapply})
+ tpl.render("cbi/footer", {flow = config, pageaction=pageaction, state = state, autoapply = config.autoapply})
end
end