From: Anton Khorev Date: Sat, 27 Aug 2022 21:53:53 +0000 (+0300) Subject: Fix eslint errors X-Git-Tag: live~1490^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2da8855cc2d6a0dd9be8e5eebd96c1f7df277135 Fix eslint errors --- diff --git a/app/assets/javascripts/leaflet.sidebar-pane.js b/app/assets/javascripts/leaflet.sidebar-pane.js index 365a93213..8403c7bc3 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)); } @@ -44,7 +44,7 @@ L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) { } return $container[0]; - } + }; // control.onAddPane = function (map, button, $ui, toggle) { // }