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

libs/web/luasrc/dispatcher.lua

libs/web/luasrc/dispatcher.lua

index 9025529..03e7c7d 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