liquid_feedback_frontend

annotate app/main/initiative/_action/update_ignore.lua @ 469:3e2e233330d9

Added some whitespace to updated initiatives list and removed filter from initiatives
author bsw
date Wed Mar 14 11:26:22 2012 +0100 (2012-03-14)
parents 955bd41e1559
children
rev   line source
bsw@450 1 local member = app.session.member
bsw@450 2 local initiative = Initiative:by_id(param.get_id())
bsw@450 3
bsw@450 4 local ignore_initiative = IgnoredInitiative:by_pk(member.id, initiative.id)
bsw@450 5
bsw@450 6 if param.get("delete", atom.boolean) then
bsw@450 7 if ignore_initiative then
bsw@450 8 ignore_initiative:destroy()
bsw@450 9 end
bsw@450 10 return
bsw@450 11 end
bsw@450 12
bsw@450 13 if not ignore_initiative then
bsw@450 14 ignore_initiative = IgnoredInitiative:new()
bsw@450 15 ignore_initiative.member_id = member.id
bsw@450 16 ignore_initiative.initiative_id = initiative.id
bsw@450 17 ignore_initiative:save()
bsw@450 18 end
bsw@450 19
bsw@450 20

Impressum / About Us