X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8a02bd67d9d20c4a6b01b58e88b8d65163a3798e..71e7208a0aceccf47edce739803130096999da5d:/app/assets/javascripts/leaflet.layers.js?ds=inline diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index 518cdc7f1..9ef2d759e 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -7,12 +7,7 @@ L.OSM.layers = function (options) { var $container = $("
") .attr("class", "control-layers"); - var button = $("") - .attr("class", "control-button") - .attr("href", "#") - .attr("title", I18n.t("javascripts.map.layers.title")) - .html("") - .on("click", toggle) + var button = this.makeButton("layers", "javascripts.map.layers.title", toggle) .appendTo($container); var $ui = this.makeUI("layers-ui", "javascripts.map.layers.header", toggle);