liquid_feedback_frontend
diff app/main/issue/_list2.lua @ 1145:904f6807f7fa
Added support for upcoming moonbridge bases WebMCP
author | bsw |
---|---|
date | Sat Mar 21 15:26:39 2015 +0100 (2015-03-21) |
parents | 701a5cf6b067 |
children | 851d4710452f |
line diff
1.1 --- a/app/main/issue/_list2.lua Sat Mar 21 15:03:39 2015 +0100 1.2 +++ b/app/main/issue/_list2.lua Sat Mar 21 15:26:39 2015 +0100 1.3 @@ -9,7 +9,7 @@ 1.4 1.5 local limit = 25 1.6 1.7 -local mode = param.get_all_cgi()["mode"] or "issue" 1.8 +local mode = request.get_param{ name = "mode" } or "issue" 1.9 1.10 if for_initiative or for_issue or for_member then 1.11 mode = "timeline" 1.12 @@ -24,7 +24,7 @@ 1.13 1.14 elseif mode == "timeline" then 1.15 1.16 - local event_max_id = param.get_all_cgi()["event_max_id"] 1.17 + local event_max_id = request.get_param_strings()["event_max_id"] 1.18 1.19 selector = Event:new_selector() 1.20 :add_order_by("event.id DESC") 1.21 @@ -76,7 +76,7 @@ 1.22 :add_field("array_length(_delegating_interest.delegate_member_ids, 1)", "delegation_chain_length") 1.23 end 1.24 1.25 -function doit() 1.26 +local function doit() 1.27 1.28 local last_event_id 1.29 1.30 @@ -316,6 +316,7 @@ 1.31 end } 1.32 elseif #items > limit then 1.33 ui.container { attr = { class = row_class }, content = function () 1.34 + local params = request.get_param_strings() 1.35 ui.link{ 1.36 attr = { class = "moreLink" }, 1.37 text = _"Show older events", 1.38 @@ -325,9 +326,9 @@ 1.39 params = { 1.40 mode = "timeline", 1.41 event_max_id = last_event_id, 1.42 - tab = param.get_all_cgi()["tab"], 1.43 - phase = param.get_all_cgi()["phase"], 1.44 - closed = param.get_all_cgi()["closed"] 1.45 + tab = params["tab"], 1.46 + phase = params["phase"], 1.47 + closed = params["closed"] 1.48 } 1.49 } 1.50 end } 1.51 @@ -370,4 +371,4 @@ 1.52 end 1.53 1.54 ui.filters(filters) 1.55 - 1.56 \ No newline at end of file 1.57 +