[Libreoffice-commits] online.git: loleaflet/src
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 28 11:21:12 UTC 2020
loleaflet/src/control/Control.JSDialogBuilder.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit be4800531d0a3e184d4683992f382d08837ffec0
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Thu Jan 23 05:17:53 2020 +0530
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Jan 28 12:20:52 2020 +0100
Fixed broken image linking in mobile wizard
after new callback function route for the mobile wizard,
noneexisting images were being added to menu
Change-Id: Iec3f817cc218d7a4cb9b92370f092fdf6dc18d70
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87228
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 3660dc2fa..71c074103 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1422,7 +1422,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
var menuEntry = L.DomUtil.create('div', 'ui-header level-' + builder._currentDepth + ' mobile-wizard ui-widget', parentContainer);
var icon = null;
- var commandName = data.command ? data.command.substring('.uno:'.length) : data.id;
+ var commandName = data.command && data.command.substring(0, '.uno:'.length) === '.uno:' ? data.command.substring('.uno:'.length) : data.id;
if (commandName && commandName.length && L.LOUtil.existsIconForCommand(commandName)) {
var iconSpan = L.DomUtil.create('span', 'menu-entry-icon ' + commandName.toLowerCase(), menuEntry);
var iconPath = 'images/lc_' + commandName.toLowerCase() + '.svg';
More information about the Libreoffice-commits
mailing list