X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d3e99bc8bd58533b9432518f8d0573995b8082b9..bb868e0b11b25eb000a2c71cc993db86e383e0f3:/app/assets/javascripts/leaflet.key.js diff --git a/app/assets/javascripts/leaflet.key.js b/app/assets/javascripts/leaflet.key.js index 58bfbf6d2..3e8e66854 100644 --- a/app/assets/javascripts/leaflet.key.js +++ b/app/assets/javascripts/leaflet.key.js @@ -2,79 +2,79 @@ L.OSM.key = function (options) { var control = L.control(options); control.onAdd = function (map) { - var $container = $('
') - .attr('class', 'control-key'); - - var button = $('') - .attr('class', 'control-button') - .attr('href', '#') - .html('') - .on('click', toggle) + var $container = $("
") + .attr("class", "control-key"); + + var button = $("") + .attr("class", "control-button") + .attr("href", "#") + .html("") + .on("click", toggle) .appendTo($container); - var $ui = $('
') - .attr('class', 'key-ui'); + var $ui = $("
") + .attr("class", "key-ui"); - $('
') - .attr('class', 'sidebar_heading') + $("
") + .attr("class", "sidebar_heading") .appendTo($ui) .append( - $('') - .text(I18n.t('javascripts.close')) - .attr('class', 'icon close') - .bind('click', toggle)) + $("