diff options
| author | Thomas Haddad | 2016-12-12 12:04:12 +0100 |
|---|---|---|
| committer | Thomas Haddad | 2016-12-12 12:04:12 +0100 |
| commit | ea9f21ee1404c9b3f2369cc4d3d238d63a6f5b03 (patch) | |
| tree | 5ccdf989746cfa6515021de914d6ea4fe1716e1c /app/assets/javascripts | |
| parent | 77f87c1879efc2f04a97a5c0a6c241c9d805cd20 (diff) | |
| download | chouette-core-ea9f21ee1404c9b3f2369cc4d3d238d63a6f5b03.tar.bz2 | |
Fix stopAreas having a checked attribute for each mission when selected Refs #2204
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'app/assets/javascripts')
| -rw-r--r-- | app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js b/app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js index 074dc0919..98144938c 100644 --- a/app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js +++ b/app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js @@ -13,16 +13,15 @@ const actions = { fetch(req) .then(response => response.json()) .then((json) => { - console.log(json) - let stop_points = [] - for (let val of json){ + let val + for (val of json){ + let stop_points = [] for (let stop_point of val.route_short_description.stop_points){ stop_point.checked = false stop_points[stop_point.object_id] = stop_point } - // for (let stopArea of val.stop_area_short_descriptions){ - // debugger - // stop_points[stopArea.stop_area_short_description.object_id].checked = true + for (let stopArea of val.stop_area_short_descriptions){ + stop_points[stopArea.stop_area_short_description.object_id].checked = true } state.push({ name: val.name, |
