loleaflet/src/control/Control.AlertDialog.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5b6b59309f5e4ce15011585b0a0fd2afb2bcce12
Author:     Michael Meeks <michael.me...@collabora.com>
AuthorDate: Thu Jun 6 12:31:59 2019 +0100
Commit:     Michael Meeks <michael.me...@collabora.com>
CommitDate: Thu Jun 6 12:36:49 2019 +0100

    When dismissing a dialog use afterClose to re-focus map.
    
    It seems beforeClose is used by vex itself to emit the callback.

diff --git a/loleaflet/src/control/Control.AlertDialog.js 
b/loleaflet/src/control/Control.AlertDialog.js
index d0bd78339..1e1267649 100644
--- a/loleaflet/src/control/Control.AlertDialog.js
+++ b/loleaflet/src/control/Control.AlertDialog.js
@@ -64,7 +64,7 @@ L.Control.AlertDialog = L.Control.extend({
                                showCloseButton: true,
                                buttons: buttonsList,
                                callback: function() {},
-                               beforeClose: function () {
+                               afterClose: function () {
                                        e.map.focus();
                                        e.map.enable(true);
                                }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to