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