loleaflet/src/control/Control.JSDialogBuilder.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 5f3ead32983ac35b0f354e06230e018fed979a57 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue Oct 8 14:05:24 2019 +0200 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Tue Oct 8 14:05:40 2019 +0200 jsdialogs: move id to the container of img Change-Id: Id0343ddeb64e1b60262ff792f83d3a199842d1a8 diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index a3f920b48..138a4eb9a 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -337,14 +337,17 @@ L.Control.JSDialogBuilder = L.Control.extend({ if (data.command) { var id = data.command.substr('.uno:'.length); + div.id = id; + var icon = builder._createIconPathFronUnoCommand(data.command); + var buttonId = id + 'img'; button = L.DomUtil.create('img', 'ui-content unobutton', div); button.src = icon; - button.id = id; + button.id = buttonId; var label = L.DomUtil.create('span', 'ui-content unolabel', div); - label.for = id; + label.for = buttonId; label.innerHTML = data.text; } else { button = L.DomUtil.create('label', 'ui-content unolabel', div); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits