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

mert (via logerrit) logerrit at kemper.freedesktop.org
Fri Feb 21 12:19:47 UTC 2020


 loleaflet/src/control/Control.JSDialogBuilder.js |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit e1338035ce1653e7fb7f2ba8360e5c4b51969804
Author:     mert <mert.tumer at collabora.com>
AuthorDate: Fri Feb 21 14:45:55 2020 +0300
Commit:     Pedro Pinto da Silva <pedro.silva at collabora.com>
CommitDate: Fri Feb 21 13:19:30 2020 +0100

    mobilewizard: iconPath for panelHandler
    
    Change-Id: I8ddcb18570cdd5b92a09dced2a219abf110ecbcf
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89201
    Tested-by: Pedro Pinto da Silva <pedro.silva at collabora.com>
    Reviewed-by: Pedro Pinto da Silva <pedro.silva at collabora.com>

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 93297e126..809de4333 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -403,7 +403,14 @@ L.Control.JSDialogBuilder = L.Control.extend({
 	_panelHandler: function(parentContainer, data, builder) {
 		var contentNode = data.children[0];
 
-		builder._explorableEntry(parentContainer, data, contentNode, builder);
+		var entryId = contentNode.id;
+		var iconPath = null;
+
+		if (entryId && entryId.length) {
+			iconPath = builder._createIconPath(entryId);
+		}
+
+		builder._explorableEntry(parentContainer, data, contentNode, builder, null, iconPath);
 
 		return false;
 	},


More information about the Libreoffice-commits mailing list