[Libreoffice-commits] online.git: loleaflet/src

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 6 11:37:13 UTC 2019


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

New commits:
commit 5b6b59309f5e4ce15011585b0a0fd2afb2bcce12
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Jun 6 12:31:59 2019 +0100
Commit:     Michael Meeks <michael.meeks at 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);
 				}


More information about the Libreoffice-commits mailing list