[Libreoffice-commits] online.git: loleaflet/src
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 23 17:36:50 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 3d576a07de6fd6f401903d1890b7f2317b480f7d
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Sun Oct 20 10:27:39 2019 -0400
Commit: Henry Castro <hcastro at 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 <hcastro at collabora.com>
Tested-by: Henry Castro <hcastro at 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);
});
}
More information about the Libreoffice-commits
mailing list