X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/254aaaf5fb2135a9f3f1b343331b4d5b3d94fe74..9db08088701d9a594ad8e8396fea5abffb4a9ff4:/app/assets/javascripts/leaflet.layers.js diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index d40a1b603..038205ca4 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -1,56 +1,55 @@ -L.OSM.layers = function(options) { +L.OSM.layers = function (options) { var control = L.control(options); control.onAdd = function (map) { var layers = options.layers; - var $container = $('
') - .attr('class', 'control-layers'); + 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 = $("") + .attr("class", "control-button") + .attr("href", "#") + .attr("title", I18n.t("javascripts.map.layers.title")) + .html("") + .on("click", toggle) .appendTo($container); - var $ui = $('
') - .attr('class', 'layers-ui'); + var $ui = $("
") + .attr("class", "layers-ui"); - $('
') - .attr('class', 'sidebar_heading') + $("
") + .attr("class", "sidebar_heading") .appendTo($ui) .append( - $('') - .text(I18n.t('javascripts.close')) - .attr('class', 'icon close') - .bind('click', toggle)) + $("