X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fweb%2Fluasrc%2Fdispatcher.lua;h=22d9dd9bc323f9f2df1eecfc6a97b7274e3f7b0b;hp=51f6d9695fd08f07f8594a69798fdf9df695f241;hb=c7a06b61c778a9e24b67a1a89992c1dd77886a21;hpb=ae6fd93b8ce6b47d68a9ad96e0984edb91ee1716 diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 51f6d9695..22d9dd9bc 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -521,6 +521,12 @@ function cbi(model, config) end end + if config.state_handler then + if not config.state_handler(state, maps) then + return + end + end + local pageaction = true http.header("X-CBI-State", state or 0) luci.template.render("cbi/header", {state = state})