[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 22 12:20:11 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ec2cd78bcb3387e977bffea5640beb2291ab8cf3
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Oct 22 11:09:18 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Oct 22 14:19:54 2019 +0200
jsdialogs: change event message to JSON
- also differentiate set(editfield) from change (checkbox) event type
Change-Id: I76d69f29cbe84368770d308f7cfd15c828bd8a89
Reviewed-on: https://gerrit.libreoffice.org/81312
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
Tested-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 210d528db..a59d5d6f8 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -101,7 +101,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (objectType == 'toolbutton' && eventType == 'click') {
builder.map.sendUnoCommand(data);
} else if (object) {
- var message = 'dialogevent ' + window.sidebarId + ' ' + object.id + ' ' + eventType + ' ' + data;
+ var message = 'dialogevent ' + window.sidebarId + ' {\"id\":\"' + object.id + '\", \"cmd\": \"' + eventType + '\", \"data\":\"' + data + '\"}';
builder.map._socket.sendMessage(message);
}
},
@@ -441,7 +441,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (customCallback)
customCallback();
else
- builder.callback('spinfield', 'change', div, this.value, builder);
+ builder.callback('spinfield', 'set', div, this.value, builder);
});
plus.addEventListener('click', function() {
More information about the Libreoffice-commits
mailing list