loleaflet/src/control/Control.JSDialogBuilder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 3d576a07de6fd6f401903d1890b7f2317b480f7d Author: Henry Castro <hcas...@collabora.com> AuthorDate: Sun Oct 20 10:27:39 2019 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Wed Oct 23 19:35:38 2019 +0200 lolefalet: send command when the user touches an item on the layout menu sidebar of the impress document The client side sends the JSON string: { id: "sd::LayoutMenu", // control id in sidebar LayoutMenu cmd: "selected", // Selection action data: "3" // item id, } The LO core server receives the data and execute actions to the correspond control child. Change-Id: I066b804a63f48fe04e9c691da928e186b573f8c2 Reviewed-on: https://gerrit.libreoffice.org/81168 Reviewed-by: Henry Castro <hcas...@collabora.com> Tested-by: Henry Castro <hcas...@collabora.com> diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index bd3e1f047..97eb06109 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -548,8 +548,9 @@ L.Control.JSDialogBuilder = L.Control.extend({ image = image.substr(0, image.lastIndexOf('.')); image = image.substr(image.lastIndexOf('/') + 1); elem = L.DomUtil.create('div', 'layout ' + image, parentContainer); + $(elem).data('id', data.entries[index].id); $(elem).click(function () { - builder.callback('valueset', 'selected', data.pos); + builder.callback('valueset', 'selected', { id: data.id }, $(this).data('id'), builder); }); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits