From: Tom Hughes Date: Sun, 26 Jun 2022 18:56:27 +0000 (+0100) Subject: Fix eslint warnings X-Git-Tag: live~1607 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/ed4549afabd1c555b90fd39c81b47087a94cc2b1 Fix eslint warnings --- diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 5028cdd1e..d5b16bbfb 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -61,12 +61,12 @@ window.updateLinks = function (loc, zoom, layers, object) { .tooltip({ placement: "bottom" }) .attr("data-original-title", editDisabled ? I18n.t("javascripts.site.edit_disabled_tooltip") : "") - // Disable the button group and also the buttons to avoid + // Disable the button group and also the buttons to avoid // inconsistent behaviour when zooming .toggleClass("disabled", editDisabled) .find("a") - .toggleClass("disabled", editDisabled) - }; + .toggleClass("disabled", editDisabled); +}; window.maximiseMap = function () { $("#content").addClass("maximised");