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