webmcp
diff framework/env/ui/form.lua @ 113:ca88032cb37c
Anchor (#) support for redirect and routing
author | jbe |
---|---|
date | Sun Jan 19 14:47:08 2014 +0100 (2014-01-19) |
parents | e2b8f9dcc4a6 |
children | 32ec28229bb5 |
line diff
1.1 --- a/framework/env/ui/form.lua Mon Jan 13 21:40:27 2014 +0100 1.2 +++ b/framework/env/ui/form.lua Sun Jan 19 14:47:08 2014 +0100 1.3 @@ -13,7 +13,8 @@ 1.4 module = module, -- optional module name, defaults to current module 1.5 view = view, -- view name 1.6 id = id, -- optional id to be passed to the view 1.7 - params = params -- optional params to be passed to the view 1.8 + params = params, -- optional params to be passed to the view 1.9 + anchor = anchor -- optional anchor for URL 1.10 }, 1.11 ok = { ... }, -- routing when "ok" is returned by the called action 1.12 error = { ... }, -- routing when "error" is returned by the called action 1.13 @@ -53,6 +54,7 @@ 1.14 params["_webmcp_routing." .. status .. ".module"] = module 1.15 params["_webmcp_routing." .. status .. ".view"] = settings.view 1.16 params["_webmcp_routing." .. status .. ".id"] = settings.id 1.17 + params["_webmcp_routing." .. status .. ".anchor"] = settings.anchor 1.18 if settings.params then 1.19 for key, value in pairs(settings.params) do 1.20 params["_webmcp_routing." .. status .. ".params." .. key] = value