From: John Firebaugh Date: Wed, 13 Nov 2013 20:40:36 +0000 (-0800) Subject: Don't add note when disabled X-Git-Tag: live~4625^2~85 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/a661ee16931afe74866a57931c477ab8e0b35b05?hp=8f4edc234adb903a5b6ae304c771fd85adb32699 Don't add note when disabled --- 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'); });