webmcp

annotate framework/env/ui/add_partial_param_names.lua @ 23:3a6fe8663b26

Code cleanup and documentation added; Year in copyright notice changed to 2009-2010

Details:
- Changed quoting style in auth.openid.xrds_document{...}
- Fixed documentation for auth.openid.initiate{...}
- Added documentation for mondelefant
- Code-cleanup in mondelefant:
-- removed unneccessary lines "rows = PQntuples(res); cols = PQnfields(res);"
-- avoided extra copy of first argument (self) in mondelefant_conn_query
-- no rawget in meta-method "__index" of database result lists and objects
-- removed unreachable "return 0;" in meta-method "__newindex" of database result lists and objects
- Year in copyright notice changed to 2009-2010
- Version string changed to "1.1.1"
author jbe
date Fri Jun 04 19:00:34 2010 +0200 (2010-06-04)
parents f3d3203cd2e4
children
rev   line source
jbe/bsw@11 1 --[[--
jbe/bsw@11 2 ui.add_partial_param_names(
jbe/bsw@11 3 name_list
jbe/bsw@11 4 )
jbe/bsw@11 5
jbe@12 6 This function adds names of GET/POST parameters to the list of parameters
jbe@12 7 which are to be copied when calling ui._partial_load_js{...} or
jbe@12 8 ui.link{..., partial = {...}} or ui.form{..., partial = {...}}.
jbe/bsw@11 9
jbe/bsw@11 10 --]]--
jbe/bsw@11 11
jbe/bsw@11 12 function ui.add_partial_param_names(name_list)
jbe/bsw@11 13 if ui._partial_state then
jbe/bsw@11 14 for idx, param_name in ipairs(name_list) do
jbe/bsw@11 15 ui._partial_state.param_name_hash[param_name] = true
jbe/bsw@11 16 end
jbe/bsw@11 17 end
jbe/bsw@11 18 end

Impressum / About Us