]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Add yaml syntax highlighting to code blocks
[rails.git] / app / assets / javascripts / index.js
index 5c7b2d26e9f1e0fd6eb2d1c53a2bd61ce0481584..2b29992e909892802c38092bbe36f611b8095be4 100644 (file)
@@ -1,7 +1,7 @@
 //= require_self
 //= require leaflet.sidebar
 //= require leaflet.sidebar-pane
-//= require leaflet.locatecontrol/src/L.Control.Locate
+//= require leaflet.locatecontrol/dist/L.Control.Locate.umd
 //= require leaflet.locate
 //= require leaflet.layers
 //= require leaflet.key
@@ -396,7 +396,7 @@ $(document).ready(function () {
   OSM.router.load();
 
   $(document).on("click", "a", function (e) {
-    if (e.isDefaultPrevented() || e.isPropagationStopped()) {
+    if (e.isDefaultPrevented() || e.isPropagationStopped() || $(e.target).data("turbo")) {
       return;
     }