Detach the permalink from the DOM so only one copy is shown
authorTom Hughes <tom@compton.nu>
Fri, 18 Jan 2013 13:50:37 +0000 (13:50 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 18 Jan 2013 13:50:37 +0000 (13:50 +0000)
app/assets/javascripts/index.js

index 5cf9c15ff0311a7d5763a72f95f160624125341a..847c230b6e77ed3fc44d07fe917f3dedd3f26dcc 100644 (file)
@@ -4,7 +4,7 @@
 //= require index/key
 
 $(document).ready(function () {
-  var permalinks = $("#permalink").html();
+  var permalinks = $("#permalink").detach().html();
   var marker;
   var params = OSM.mapParams();
   var map = createMap("map");