loleaflet/src/control/Control.JSDialogBuilder.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 2b5dac78f65508dbf849231c7bd7ac34b0e8b9f8 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Thu Mar 5 14:40:54 2020 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Tue May 19 13:33:58 2020 +0200 jsdialog: send control type with event Change-Id: I6cd6f1d26b5c78715f9e0adc992a1869e0f19a97 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93029 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index ab0996c22..492bbe3dd 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -230,8 +230,11 @@ L.Control.JSDialogBuilder = L.Control.extend({ data = typeof data === 'string' ? data.replace('"', '\\"') : data; var windowId = window.mobileDialogId !== undefined ? window.mobileDialogId : (window.sidebarId !== undefined ? window.sidebarId : -1); - var message = 'dialogevent ' + windowId + - ' {\"id\":\"' + object.id + '\", \"cmd\": \"' + eventType + '\", \"data\":\"' + data + '\"}'; + var message = 'dialogevent ' + windowId + + ' {\"id\":\"' + object.id + + '\", \"cmd\": \"' + eventType + + '\", \"data\": \"' + data + + '\", \"type\": \"' + objectType + '\"}'; builder.map._socket.sendMessage(message); } }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits