Changeset 3684 for luci/trunk/libs/web/luasrc/dispatcher.lua
- Timestamp:
- 11/01/08 18:11:02 (5 years ago)
- Files:
-
- 1 modified
-
luci/trunk/libs/web/luasrc/dispatcher.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/libs/web/luasrc/dispatcher.lua
r3678 r3684 500 500 501 501 --- Create a CBI model dispatching target. 502 -- @param model CBI model t po be rendered502 -- @param model CBI model to be rendered 503 503 function cbi(model, config) 504 504 config = config or {} … … 522 522 end 523 523 524 local pageaction = true 524 525 http.header("X-CBI-State", state or 0) 525 526 luci.template.render("cbi/header", {state = state}) 526 527 for i, res in ipairs(maps) do 527 528 res:render() 528 end 529 luci.template.render("cbi/footer", {state = state, autoapply = config.autoapply}) 529 if res.pageaction == false then 530 pageaction = false 531 end 532 end 533 luci.template.render("cbi/footer", {pageaction=pageaction, state = state, autoapply = config.autoapply}) 530 534 end 531 535 end
