From 04fbc71a40ba73f9d9ba7253fc076b54c3d7ec84 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 6 Aug 2013 10:40:05 +0100 Subject: [PATCH] Ignore clicks on the add note button when it is disabled --- app/assets/javascripts/index/notes.js.erb | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.39.5