Publish status data
authorSteven Barth <steven@midlink.org>
Thu, 30 Oct 2008 19:10:08 +0000 (19:10 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 30 Oct 2008 19:10:08 +0000 (19:10 +0000)
Conflicts:

libs/web/luasrc/dispatcher.lua

libs/web/luasrc/dispatcher.lua

index 9025529d71d3187569cbcf7f19c86dbe769956e4..03e7c7d65928c183d470092cea8418bb503ce7f1 100644 (file)
@@ -517,11 +517,11 @@ function cbi(model)
                end
 
                http.header("X-CBI-State", state or 0)
-               luci.template.render("cbi/header")
+               luci.template.render("cbi/header", {state = state})
                for i, res in ipairs(maps) do
                        res:render()
                end
-               luci.template.render("cbi/footer")
+               luci.template.render("cbi/footer", {state = state})
        end
 end