Don't try and add a note when the control is disabled

This commit is contained in:
Tom Hughes 2012-12-04 14:31:08 +00:00
parent 0d11ad7415
commit ee530d8111

View file

@ -174,6 +174,8 @@ $(document).ready(function () {
$("#createnoteanchor").click(function (e) {
e.preventDefault();
if ($(e.target).hasClass("disabled")) return;
map.addLayer(noteLayer);
var marker = L.marker(map.getCenter(), {