liquid_feedback_frontend
annotate app/main/opinion/_action/xhr_update.lua @ 1756:1e5d1bc961c4
Do not show top paginator
| author | bsw | 
|---|---|
| date | Wed Oct 13 15:22:54 2021 +0200 (2021-10-13) | 
| parents | 4188405c2425 | 
| children | 
| rev | line source | 
|---|---|
| bsw@1649 | 1 local suggestion_id = param.get("suggestion_id", atom.integer) | 
| bsw@1649 | 2 local degree = param.get("degree", atom.number) | 
| bsw@1649 | 3 local fulfilled = param.get("fulfilled", atom.boolean) | 
| bsw@1649 | 4 | 
| bsw@1649 | 5 print(degree, fulfilled) | 
| bsw@1649 | 6 | 
| bsw@1649 | 7 slot.set_layout() | 
| bsw@1649 | 8 | 
| bsw@1649 | 9 if Opinion:update(suggestion_id, app.session.member_id, degree, fulfilled) then | 
| bsw@1649 | 10 slot.put_into("data", "ok") | 
| bsw@1649 | 11 else | 
| bsw@1649 | 12 request.set_status("500 Internal Server Error") | 
| bsw@1649 | 13 end | 
| bsw@1649 | 14 |