liquid_feedback_frontend

diff app/main/delegation/_action/update.lua @ 5:afd9f769c7ae

Version beta1

Final voting with Schulze-Method is now possible

Many bug fixes and code cleanup

Registration with invite codes

More sort and filter options

Seperated display of "supporters" and "potential supporters"

Optical changes

Flood limit / initiative contigent is now checked by frontend

Neccessary changes to access core beta11
author bsw/jbe
date Fri Dec 25 12:00:00 2009 +0100 (2009-12-25)
parents 80c215dbf076
children 02aacb3dffe0
line diff
     1.1 --- a/app/main/delegation/_action/update.lua	Thu Dec 10 12:00:00 2009 +0100
     1.2 +++ b/app/main/delegation/_action/update.lua	Fri Dec 25 12:00:00 2009 +0100
     1.3 @@ -15,9 +15,9 @@
     1.4  if param.get("delete") or trustee_id == -1 then
     1.5  
     1.6    if delegation then
     1.7 -  
     1.8 +
     1.9      delegation:destroy()
    1.10 -  
    1.11 +
    1.12      if issue_id then
    1.13        slot.put_into("notice", _"Your delegation for this issue has been deleted.")
    1.14      elseif area_id then
    1.15 @@ -27,7 +27,7 @@
    1.16      end
    1.17  
    1.18    end
    1.19 -  
    1.20 +
    1.21  else
    1.22  
    1.23    if not delegation then
    1.24 @@ -35,6 +35,13 @@
    1.25      delegation.truster_id = truster_id
    1.26      delegation.area_id    = area_id
    1.27      delegation.issue_id   = issue_id
    1.28 +    if issue_id then
    1.29 +      delegation.scope = "issue"
    1.30 +    elseif area_id then
    1.31 +      delegation.scope = "area"
    1.32 +    else
    1.33 +      delegation.scope = "global"
    1.34 +    end
    1.35    end
    1.36  
    1.37    delegation.trustee_id = trustee_id

Impressum / About Us