X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4ef55ac3aaa7bad06dbded9ebdf20d2f8e45f35c..ce63209f326d90ae07367008a78a7af9b812021c:/app/assets/javascripts/leaflet.sidebar-pane.js?ds=inline diff --git a/app/assets/javascripts/leaflet.sidebar-pane.js b/app/assets/javascripts/leaflet.sidebar-pane.js index 365a93213..7408585f2 100644 --- a/app/assets/javascripts/leaflet.sidebar-pane.js +++ b/app/assets/javascripts/leaflet.sidebar-pane.js @@ -1,34 +1,28 @@ L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) { - var control = L.control(options); - + const control = L.control(options); + control.onAdd = function (map) { - var $container = $("