]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Set the tooltip on the edit tab after the locale is set
[rails.git] / app / assets / javascripts / application.js
index 5a4127e266661ec13dcd5bdf0a1de4dbc7d3f164..f3ca5f37f463898b2412a83ab07298279f46059e 100644 (file)
@@ -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"));
 });