X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eebe1f1d3ed885e94725c07d24e0483f603f03da..ad10390663f5c27d4ac9eea1ff35a5a6e2ae4622:/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]; };