webmcp
diff framework/env/ui/filters.lua @ 223:32ec28229bb5
Finished removing all references to cgi module (except demo-app); Removed partial loading mechanism
author | jbe |
---|---|
date | Fri Feb 27 21:49:00 2015 +0100 (2015-02-27) |
parents | 774a891dc74f |
children |
line diff
1.1 --- a/framework/env/ui/filters.lua Fri Feb 27 17:18:08 2015 +0100 1.2 +++ b/framework/env/ui/filters.lua Fri Feb 27 21:49:00 2015 +0100 1.3 @@ -55,7 +55,7 @@ 1.4 local current_options = {} 1.5 for idx, filter in ipairs(args) do 1.6 local filter_name = filter.name or "filter" 1.7 - local current_option = atom.string:load(cgi.params[filter_name]) 1.8 + local current_option = atom.string:load(request.get_param{name=filter_name}) 1.9 if not current_option then 1.10 current_option = param.get(filter_name) 1.11 end 1.12 @@ -90,7 +90,7 @@ 1.13 content = function() 1.14 for idx, filter in ipairs(args) do 1.15 local filter_name = filter.name or "filter" 1.16 - local current_option = atom.string:load(cgi.params[filter_name]) 1.17 + local current_option = atom.string:load(request.get_param{name=filter_name}) 1.18 if not current_option then 1.19 current_option = param.get(filter_name) 1.20 end 1.21 @@ -116,12 +116,7 @@ 1.22 view = request.get_view(), 1.23 id = id, 1.24 params = params, 1.25 - text = option.label, 1.26 - partial = { 1.27 - params = { 1.28 - [filter_name] = option.name 1.29 - } 1.30 - } 1.31 + text = option.label 1.32 } 1.33 end 1.34 end