From: Tom Hughes Date: Tue, 6 Aug 2013 09:40:05 +0000 (+0100) Subject: Ignore clicks on the add note button when it is disabled X-Git-Tag: live~5420 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/04fbc71a40ba73f9d9ba7253fc076b54c3d7ec84 Ignore clicks on the add note button when it is disabled --- diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 63576c06c..8972d6bf9 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -223,6 +223,7 @@ function initializeNotes(map, params) { e.preventDefault(); e.stopPropagation(); + if (addNoteButton.hasClass("disabled")) return; if (addNoteButton.hasClass("active")) return; addNoteButton.removeClass("geolink").addClass("active");