X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/19eb8110dcf8df62147ca2d0a5c8769a7fb11f71..3810d194101c586ddad1257779d61220376e7050:/src/wolnelektury/static/js/book_text/references.js diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index 45a585240..0585d84e2 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -4,8 +4,8 @@ if (interestingReferences) { interestingReferences = $.parseJSON(interestingReferences); } - if (interestingReferences) { - $("#settings-references").show(); + if (Object.keys(interestingReferences).length) { + $("#settings-references").css('display', 'block'); } @@ -18,7 +18,7 @@ if (map_enabled) return; map = L.map('reference-map').setView([0, 0], 11); - L.tileLayer('https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png?lang=pl', { + L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: 'Map data © OpenStreetMap contributors' }).addTo(map);