X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9acde429bf8e92c67233461e8a6f5074eb2ff637..4af54ce93bd01a4094a4657cf9e54860a7e16bb2:/app/assets/javascripts/leaflet.sidebar-pane.js diff --git a/app/assets/javascripts/leaflet.sidebar-pane.js b/app/assets/javascripts/leaflet.sidebar-pane.js index 2dc3479f2..d8213a376 100644 --- a/app/assets/javascripts/leaflet.sidebar-pane.js +++ b/app/assets/javascripts/leaflet.sidebar-pane.js @@ -1,16 +1,16 @@ L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) { var control = L.control(options); - + control.onAdd = function (map) { var $container = $("
") .attr("class", "control-" + uiClass); - var button = $("") + var button = $("") .attr("class", "control-button") .attr("href", "#") .html("") .on("click", toggle); - + if (buttonTitle) { button.attr("title", I18n.t(buttonTitle)); } @@ -20,16 +20,14 @@ L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) { var $ui = $("
") .attr("class", uiClass + "-ui"); - $("
") - .attr("class", "sidebar_heading") + $("