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

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 7 11:00:24 UTC 2020


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

New commits:
commit 83436de3965dc5b208f65477b841bd727ef73a21
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Mon Sep 7 12:44:55 2020 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Sep 7 13:00:05 2020 +0200

    notebookbar: add tooltip to drawingarea widget
    
    Change-Id: Ic0988de264a2782e4f777d8f11236f7b70f9bc72
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102162
    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 c4323d791..dbfa4dbe4 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1572,6 +1572,9 @@ L.Control.JSDialogBuilder = L.Control.extend({
 			var image = L.DomUtil.create('img', builder.options.cssClass + ' ui-drawing-area', container);
 			image.src = data.image.replace('\\', '');
 			image.id = data.id;
+			image.alt = data.text;
+			image.title = data.text;
+			$(image).tooltip();
 
 			if (data.loading && data.loading === 'true') {
 				var loaderContainer = L.DomUtil.create('div', 'ui-drawing-area-loader-container', container);


More information about the Libreoffice-commits mailing list