X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eebe1f1d3ed885e94725c07d24e0483f603f03da..33b7903c799c4f945e1b0e708587b70360cb0e74:/app/assets/javascripts/leaflet.note.js diff --git a/app/assets/javascripts/leaflet.note.js b/app/assets/javascripts/leaflet.note.js index 68e09c88d..77fb9baff 100644 --- a/app/assets/javascripts/leaflet.note.js +++ b/app/assets/javascripts/leaflet.note.js @@ -8,22 +8,10 @@ L.OSM.note = function (options) { $('') .attr('class', 'control-button') .attr('href', '#') - .attr('title', 'Notes') + .attr('title', I18n.t('javascripts.notes.new.add')) .html('') - .on('click', toggle) .appendTo($container); - function toggle(e) { - e.stopPropagation(); - e.preventDefault(); - - if (map.hasLayer(map.noteLayer)) { - map.removeLayer(map.noteLayer); - } else { - map.addLayer(map.noteLayer); - } - } - return $container[0]; };