aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorjpl2016-11-04 15:03:49 +0100
committerjpl2016-11-04 15:03:49 +0100
commitcb0500d5949153d75f1aeb656034d8d55e02a615 (patch)
treef7398e0ad8c68382724dd96209703bf4b69fe967 /app/assets/javascripts
parentb2acd04ec51fb09b55ab4df643de1488b7571da6 (diff)
downloadchouette-core-cb0500d5949153d75f1aeb656034d8d55e02a615.tar.bz2
getting itinerary stop_points data in js, formatted in correct JSON object
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/es6_browserified/getJSON.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/es6_browserified/getJSON.js b/app/assets/javascripts/es6_browserified/getJSON.js
index e883522b0..5e7e1a078 100644
--- a/app/assets/javascripts/es6_browserified/getJSON.js
+++ b/app/assets/javascripts/es6_browserified/getJSON.js
@@ -1 +1,4 @@
-console.log(window.itinerary_stop);
+data = decodeURIComponent(window.itinerary_stop)
+JSONobject = JSON.parse(data)
+
+console.log(JSONobject)