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

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 19 09:17:45 UTC 2020


 loleaflet/src/control/Control.JSDialogBuilder.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 82fe00831adef79df1bae3fefc234180078878dc
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jun 16 11:52:19 2020 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Fri Jun 19 11:17:26 2020 +0200

    jsdialog: send click event for drawing area
    
    Change-Id: I7f162a103fc3dc67166f66d4a57390d3ef3ecdd9
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96681
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 101e3d3bb..0c91dedc2 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1549,6 +1549,10 @@ L.Control.JSDialogBuilder = L.Control.extend({
 			var image = L.DomUtil.create('img', builder.options.cssClass + ' ui-drawing-area', parentContainer);
 			image.src = data.image.replace('\\', '');
 			image.id = data.id;
+
+			$(image).click(function () {
+				builder.callback('drawingarea', 'click', image, null, builder);
+			});
 		}
 		return false;
 	},


More information about the Libreoffice-commits mailing list