summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2018-04-03 11:28:46 +0200
committerhellekin <hellekin@cepheide.org>2018-04-03 11:28:46 +0200
commit4f6c8ac616d3da59cfc087d8fb826b56280102d8 (patch)
treef500d001174e945d85b79ebcb45ff281c33241af
parentf1509a87c631a4e290043e39cff8a8253854813a (diff)
downloadwallonie-demain-proto-4f6c8ac616d3da59cfc087d8fb826b56280102d8.tar.gz
Preload JSON data earlier
-rw-r--r--assets/mapper.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/assets/mapper.js b/assets/mapper.js
index a948202..df3c8fe 100644
--- a/assets/mapper.js
+++ b/assets/mapper.js
@@ -200,6 +200,8 @@ function navSetup() {
function listSections(sections) {
var ul = $('<ul>')
sections.forEach(function(s, i) {
+ // Preload data
+ fetchMarkers(sec_id)
var li = $('<li>')
li.attr('id', 's-' + s.id)
li.html(s.name)