X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8925f2b32fe3bfd9f9325cb7486c3b2058d25d0a..56a76b9dc0745d22d9b1eac54348d6109dc3c0e1:/src/wolnelektury/static/js/book_text/references.js?ds=inline diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index 23f7b0302..4c72fe60b 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -8,13 +8,13 @@ $("#settings-references").css('display', 'block'); } - - var map_enabled = false; - var marker = L.marker([0,0]); + var marker = L.circleMarker([0,0]); var map = null; function enable_map() { + $("#reference-map").show('slow'); + if (map_enabled) return; map = L.map('reference-map').setView([0, 0], 11); @@ -60,7 +60,6 @@ enable_map(); marker.setLatLng(ref.location); - //marker.setContent(ref.label); marker.bindTooltip(ref.label).openTooltip(); map.addLayer(marker); map.panTo(ref.location, { @@ -74,7 +73,7 @@ } } - $("#reference-images img").remove(); + $("#reference-images a").remove(); if (ref.images) { $.each(ref.images, function(i, e) { $i = $("");