if self:submitstate() then
if self.save then
- return self.changed and FORM_CHANGED or FORM_VALID
+ self.state = self.changed and FORM_CHANGED or FORM_VALID
else
- return FORM_INVALID
+ self.state = FORM_INVALID
end
else
- return FORM_NODATA
+ self.state = FORM_NODATA
end
+
+ return self.state
end
function Map.render(self, ...)
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})