From: Tom Hughes Date: Fri, 18 Jan 2013 13:50:37 +0000 (+0000) Subject: Detach the permalink from the DOM so only one copy is shown X-Git-Tag: live~5133 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/843051c1b2bba89b21602614de19a40a667c6836?hp=b0747c3c1e2c3f437fb5e94e85c2f329680f3ee0 Detach the permalink from the DOM so only one copy is shown --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 5cf9c15ff..847c230b6 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -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");