X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9172695f7f94bb60dd01455a922e22d181eb284e..bab796bc7eb0b44eeb15d6fee567440647bc57e0:/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 9841b0651..57cd53d4d 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -18,9 +18,17 @@ L.OSM.layers = function(options) { var $ui = $('
') .attr('class', 'layers-ui'); - $('

') - .text(I18n.t('javascripts.map.layers.header')) - .appendTo($ui); + $('
') + .appendTo($ui) + .append( + $('') + .html('»') + .attr('class', 'close-button') + .attr('href', '#') + .bind('click', toggle)) + .append( + $('

') + .text(I18n.t('javascripts.map.layers.header'))); if (OSM.STATUS != 'api_offline' && OSM.STATUS != 'database_offline') { var overlaySection = $('
')