hide start-drawing buttons instead of disable them

This commit is contained in:
Laura Klünder 2016-09-26 09:11:06 +02:00
parent 65fa5ca044
commit 9875d4f04b
2 changed files with 6 additions and 3 deletions

View file

@ -78,3 +78,6 @@
padding-left:5.5px;
padding-right:5.5px;
}
.start-drawing {
display:none;
}

View file

@ -159,7 +159,7 @@ editor = {
},
get_features: function () {
$('.start-drawing').prop('disabled', false);
$('.start-drawing').show();
$('#mapeditcontrols').addClass('list');
},
@ -173,7 +173,7 @@ editor = {
editor.map.editTools.startPolyline(null, options);
}
$('.leaflet-drawbar').show();
$('.start-drawing').prop('disabled', true);
$('.start-drawing').hide();
},
cancel_creating: function () {
if (editor._creating === null || editor._editing !== null) return;
@ -184,7 +184,7 @@ editor = {
_canceled_creating: function (e) {
if (editor._creating !== null && editor._editing === null) {
e.layer.remove();
$('.start-drawing').prop('disabled', false);
$('.start-drawing').show();
}
},
done_creating: function(e) {