maps: add js trigger event to render maps (#59409)

This commit is contained in:
Frédéric Péters 2021-12-07 16:09:15 +01:00
parent 232afadc29
commit 95851f2b59
1 changed files with 5 additions and 3 deletions

View File

@ -330,7 +330,9 @@ $(function() {
map.load_geojson_layers()
$(cell).trigger('combo:map-ready');
};
$('div.cell.map').each(function() {
render_map(this);
});
$(document).on('combo:render-maps', function() {
$('div.cell.map').each(function() {
render_map(this);
});
}).trigger('combo:render-maps');
});