liquid_feedback_frontend

diff app/main/api/settings_info.lua @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/api/settings_info.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -0,0 +1,16 @@
     1.4 +slot.set_layout(nil, "application/json")
     1.5 +
     1.6 +local r = json.object()
     1.7 +
     1.8 +r.result = json.array()
     1.9 +for i, field in ipairs(config.member_settings_fields) do
    1.10 +  table.insert(r.result, json.object{
    1.11 +    id = field.id,
    1.12 +    name = field.name,
    1.13 +    type = field.type
    1.14 +  })
    1.15 +end
    1.16 +
    1.17 +slot.put_into("data", json.export(r))
    1.18 +slot.put_into("data", "\n")
    1.19 +

Impressum / About Us