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,12 +123,16 @@
routingToolbar = L.easyButton( routingToolbar = L.easyButton(
'glyphicon-trash', 'glyphicon-trash',
function () { function () {
bootbox.confirm("Delete route?", function(result) { bootbox.confirm({
size: 'small',
message: "Delete route?",
callback: function(result) {
if (result) { if (result) {
routing.clear(); routing.clear();
onUpdate(); onUpdate();
permalink._update_routing(); permalink._update_routing();
} }
}
}); });
}, },
'Clear route', 'Clear route',