liquid_feedback_frontend
changeset 1663:05d2f46c60c5
Fixed cancel link in preview
author | bsw |
---|---|
date | Mon Feb 15 14:20:07 2021 +0100 (2021-02-15) |
parents | 59cbb870253c |
children | fcf0bc8706f4 |
files | app/main/draft/new.lua |
line diff
1.1 --- a/app/main/draft/new.lua Mon Feb 15 14:17:51 2021 +0100 1.2 +++ b/app/main/draft/new.lua Mon Feb 15 14:20:07 2021 +0100 1.3 @@ -236,9 +236,10 @@ 1.4 ui.link{ 1.5 attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect" }, 1.6 content = _"Cancel", 1.7 - module = initiative and "initiative" or "area", 1.8 - view = "show", 1.9 - id = initiative_id or area_id 1.10 + module = initiative and "initiative" or "index", 1.11 + view = initiative and "show" or "index", 1.12 + id = initiative_id, 1.13 + params = { unit = area and area.unit_id or nil, area = area_id } 1.14 } 1.15 end ) 1.16