small confirmation dialog

This commit is contained in:
Norbert Renner 2015-05-23 12:45:06 +02:00
parent 2c2441e56b
commit eee87fab7f

View file

@ -123,11 +123,15 @@
routingToolbar = L.easyButton(
'glyphicon-trash',
function () {
bootbox.confirm("Delete route?", function(result) {
if (result) {
routing.clear();
onUpdate();
permalink._update_routing();
bootbox.confirm({
size: 'small',
message: "Delete route?",
callback: function(result) {
if (result) {
routing.clear();
onUpdate();
permalink._update_routing();
}
}
});
},