X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fd8f35309d6149f3c4924dcf95beca8ec3bbf520..66e526c2d5ed93fdb6b514a4927ba15ba71fb7bb:/app/assets/javascripts/leaflet.layers.js diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index c506c951e..5e541f1e5 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)) + $("