]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Merge remote-tracking branch 'osmlab/welcome-2'
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 63576c06caa4256cd45d4d4bad4436b5b19f6a4c..8972d6bf9df876c3f6c3933734deb024add59019 100644 (file)
@@ -223,6 +223,7 @@ function initializeNotes(map, params) {
     e.preventDefault();
     e.stopPropagation();
 
     e.preventDefault();
     e.stopPropagation();
 
+    if (addNoteButton.hasClass("disabled")) return;
     if (addNoteButton.hasClass("active")) return;
 
     addNoteButton.removeClass("geolink").addClass("active");
     if (addNoteButton.hasClass("active")) return;
 
     addNoteButton.removeClass("geolink").addClass("active");