From 6215ccb3d77b1dfbdfbbf7fb09fdd705ff28970f Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 21 Aug 2019 10:48:49 +0200 Subject: [PATCH] Fix carte initialize --- app/javascript/new_design/champs/carte.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/new_design/champs/carte.js b/app/javascript/new_design/champs/carte.js index c4f8a3cb8..f91b3b0d5 100644 --- a/app/javascript/new_design/champs/carte.js +++ b/app/javascript/new_design/champs/carte.js @@ -39,7 +39,7 @@ function diplayMap(element, data, initial = false) { } } -addEventListener('ds:page:update', initialize); +addEventListener('turbolinks:load', initialize); addEventListener('carte:update', ({ detail: { selector, data } }) => { const element = document.querySelector(selector);