X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4ef55ac3aaa7bad06dbded9ebdf20d2f8e45f35c..03f266fa4836c81a94e12a3462917f638902aa6a:/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 365a93213..ff6ee8d8b 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)); } @@ -26,7 +26,7 @@ L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) { .append($("

") .text(I18n.t(paneTitle)))) .append($("
") - .append($("