small confirmation dialog
This commit is contained in:
parent
2c2441e56b
commit
eee87fab7f
1 changed files with 9 additions and 5 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue