]> git.openstreetmap.org Git - rails.git/commitdiff
Restore prohibition on low-zoom notes
authorJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 18 Jul 2013 18:45:44 +0000 (11:45 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 18 Jul 2013 18:45:44 +0000 (11:45 -0700)
app/assets/javascripts/leaflet.note.js

index 77fb9baff90f3afc6936dfdd7d4a599fda8daf30..a38e012de63cff6f3640ef8b962b127275bd793f 100644 (file)
@@ -6,9 +6,10 @@ L.OSM.note = function (options) {
       .attr('class', 'control-note');
 
     $('<a>')
-      .attr('class', 'control-button')
+      .attr('id', 'createnoteanchor')
+      .attr('class', 'control-button geolink')
+      .attr('data-minzoom', 12)
       .attr('href', '#')
-      .attr('title', I18n.t('javascripts.notes.new.add'))
       .html('<span class="icon note"></span>')
       .appendTo($container);