X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5f95fb6b78b018e1b1d55e95dd6df6a7d40f750a..1a5f14d338b1e809947232e0dc0a59040f265395:/app/assets/javascripts/index/notes.js.erb diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index d0f6cb388..012538e1d 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -191,7 +191,7 @@ function initializeNotes(map) { notes[feature.properties.id] = updateMarker(marker, feature); newNote = null; - addNoteButton.removeClass("disabled"); + addNoteButton.removeClass("disabled").addClass("geolink"); } } @@ -226,7 +226,7 @@ function initializeNotes(map) { if (addNoteButton.hasClass("disabled")) return; - addNoteButton.addClass("disabled"); + addNoteButton.removeClass("geolink").addClass("disabled"); map.addLayer(noteLayer); @@ -263,7 +263,7 @@ function initializeNotes(map) { newNote.addTo(noteLayer).bindPopup(popupContent[0], popupOptions()).openPopup(); newNote.on("remove", function (e) { - addNoteButton.removeClass("disabled"); + addNoteButton.removeClass("disabled").addClass("geolink"); }).on("dragstart", function (e) { $(newNote).stopTime("removenote"); }).on("dragend", function (e) {