webmcp
diff framework/env/ui/link.lua @ 79:3a6962b9121c
Anchor support for encode.url{...}, ui.link{...} and ui.paginate{...}
author | jbe |
---|---|
date | Wed Jun 27 18:57:53 2012 +0200 (2012-06-27) |
parents | a1c77838c2e5 |
children | 32ec28229bb5 |
line diff
1.1 --- a/framework/env/ui/link.lua Thu Jun 21 17:18:44 2012 +0200 1.2 +++ b/framework/env/ui/link.lua Wed Jun 27 18:57:53 2012 +0200 1.3 @@ -11,6 +11,7 @@ 1.4 id = id, -- optional id to be passed to the view or action to select a particular data record 1.5 params = params, -- optional parameters to be passed to the view or action 1.6 routing = routing, -- optional routing information for action links, as described for ui.form{...} 1.7 + anchor = anchor, -- for views: anchor in destination URL 1.8 text = text, -- link text 1.9 content = content, -- link content (overrides link text, except for submit buttons for action calls without JavaScript) 1.10 partial = { -- parameters for partial loading, see below 1.11 @@ -102,6 +103,7 @@ 1.12 view = args.view, 1.13 id = args.id, 1.14 params = args.params, 1.15 + anchor = args.anchor 1.16 } 1.17 if ui.is_partial_loading_enabled() and args.partial then 1.18 a_attr.onclick = ui._partial_load_js(args.partial)