From a661ee16931afe74866a57931c477ab8e0b35b05 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 13 Nov 2013 12:40:36 -0800 Subject: [PATCH] Don't add note when disabled --- app/assets/javascripts/index/new_note.js.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/index/new_note.js.erb b/app/assets/javascripts/index/new_note.js.erb index c47cb563c..7ac37ab72 100644 --- a/app/assets/javascripts/index/new_note.js.erb +++ b/app/assets/javascripts/index/new_note.js.erb @@ -27,6 +27,8 @@ OSM.NewNote = function(map) { e.preventDefault(); e.stopPropagation(); + if ($(this).hasClass('disabled')) return; + OSM.route('/new_note'); }); -- 2.39.5