Fix.
[wolnelektury.git] / src / wolnelektury / static / js / book_text / references.js
index dcbb3c8..89663a6 100644 (file)
@@ -5,7 +5,7 @@
         interestingReferences = $.parseJSON(interestingReferences);
     }
     if (interestingReferences) {
-        $("settings-references").show();
+        $("#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 &copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
         }).addTo(map);
 
@@ -36,7 +36,6 @@
     $('a.reference').each(function() {
         $this = $(this);
         uri = $this.attr('data-uri');
-        console.log('check ' + uri);
         if (interestingReferences.hasOwnProperty(uri)) {
             $this.addClass('interesting');
             ref = interestingReferences[uri];