From eee87fab7f843f621db534dd7116d1c86849914d Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Sat, 23 May 2015 12:45:06 +0200 Subject: [PATCH] small confirmation dialog --- js/index.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/js/index.js b/js/index.js index 5955a83..5efd499 100644 --- a/js/index.js +++ b/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(); + } } }); },