Don't add note when disabled
This commit is contained in:
parent
8f4edc234a
commit
a661ee1693
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ OSM.NewNote = function(map) {
|
|||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
if ($(this).hasClass('disabled')) return;
|
||||
|
||||
OSM.route('/new_note');
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue