]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Add manual fallback for "Start Mapping" button
[rails.git] / app / assets / javascripts / index.js
index e46ca6d9d09d4483ace3474e5ca5299434e01465..2a704f72464f8d697fe02f8b91bd592855b3ac46 100644 (file)
@@ -158,6 +158,20 @@ $(document).ready(function () {
     remoteEditHandler(map.getBounds());
   }
 
+  if (OSM.params().edit_help) {
+    $('#editanchor')
+      .removeAttr('title')
+      .tooltip({
+        placement: 'bottom',
+        title: I18n.t('javascripts.edit_help')
+      })
+      .tooltip('show');
+
+    $('body').one('click', function() {
+      $('#editanchor').tooltip('hide');
+    });
+  }
+
   initializeSearch(map);
   initializeExport(map);
   initializeBrowse(map, params);