From: Tom Hughes Date: Wed, 14 Dec 2022 21:48:28 +0000 (+0000) Subject: Set the tooltip on the edit tab after the locale is set X-Git-Tag: live~1418 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/768ff8d72ee339115e2adddd972ad72a2387c94b?ds=sidebyside;hp=bd93eafdcb14f89f21691c8b7095383f60a61cf7 Set the tooltip on the edit tab after the locale is set Fixes #3839 --- diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 5a4127e26..f3ca5f37f 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -77,9 +77,6 @@ window.minimiseMap = function () { }; $(document).ready(function () { - $("#edit_tab") - .attr("title", I18n.t("javascripts.site.edit_disabled_tooltip")); - var headerWidth = 0, compactWidth = 0; @@ -147,4 +144,7 @@ $(document).ready(function () { if (application_data.location) { OSM.location = application_data.location; } + + $("#edit_tab") + .attr("title", I18n.t("javascripts.site.edit_disabled_tooltip")); });