webmcp
view framework/env/ui/add_partial_param_names.lua @ 44:9b93943e2e6e
Added preliminary notice for "disabled_records" in ui.field.select{...}
| author | jbe | 
|---|---|
| date | Sat Oct 16 18:02:27 2010 +0200 (2010-10-16) | 
| parents | f3d3203cd2e4 | 
| children | 
 line source
     1 --[[--
     2 ui.add_partial_param_names(
     3   name_list
     4 )
     6 This function adds names of GET/POST parameters to the list of parameters
     7 which are to be copied when calling ui._partial_load_js{...} or
     8 ui.link{..., partial = {...}} or ui.form{..., partial = {...}}.
    10 --]]--
    12 function ui.add_partial_param_names(name_list)
    13   if ui._partial_state then
    14     for idx, param_name in ipairs(name_list) do
    15       ui._partial_state.param_name_hash[param_name] = true
    16     end
    17   end
    18 end
