From 2da8855cc2d6a0dd9be8e5eebd96c1f7df277135 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 28 Aug 2022 00:53:53 +0300 Subject: [PATCH] Fix eslint errors --- app/assets/javascripts/leaflet.sidebar-pane.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { // } -- 2.39.5