Skip to content

Commit

Permalink
Merge pull request #79 from doxa-tech/javascript-fix
Browse files Browse the repository at this point in the history
Fixes a javascript error
  • Loading branch information
nkcr authored Jul 3, 2022
2 parents 170ddcb + 3e7eedc commit 54f9f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/controllers/cards/list_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ export default class MapController extends ListController {

map.flyTo({ center: e.features[0].geometry.coordinates });

content = `<div><h5>${type}</h5><p>${name}</p><p><a href="${e.features[0].properties.href}">En savoir plus</a></p></div>`
let content = `<div><h5>${type}</h5><p>${name}</p><p><a href="${e.features[0].properties.href}">En savoir plus</a></p></div>`;

if (disabled) {
content = content + "<p class='outdated'>Ce groupe n'est plus à jour</p>"
content = content + "<p class='outdated'>Ce groupe n'est plus à jour</p>";
}

new mapboxgl.Popup({ closeButton: false, className: disabled ? 'disabled' : '' })
Expand Down

0 comments on commit 54f9f6a

Please sign in to comment.