[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Mon Oct 21 11:35:21 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
New commits:
commit ac15c8616a3cd0ff3677a0cb96ec264f4b3785a0
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Mon Oct 21 13:33:56 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Oct 21 13:34:53 2019 +0200
jsdialogs: setup spinfields events
Change-Id: I5597b8d981e25a79eb6eb6ee7e2595d06a7eb0e9
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 0f59a10cc..4855d2298 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -101,7 +101,8 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (objectType == 'toolbutton' && eventType == 'click') {
builder.map.sendUnoCommand(data);
} else if (object) {
- builder.map._socket.sendMessage('dialogevent ' + window.sidebarId + ' ' + object.id + ' ' + eventType + ' ' + data);
+ var message = 'dialogevent ' + window.sidebarId + ' ' + object.id + ' ' + eventType + ' ' + data;
+ builder.map._socket.sendMessage(message);
}
},
@@ -436,7 +437,21 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (customCallback)
customCallback();
else
- builder.callback('spinfield', 'change', spinfield, this.value, builder);
+ builder.callback('spinfield', 'change', div, this.value, builder);
+ });
+
+ plus.addEventListener('click', function() {
+ if (customCallback)
+ customCallback();
+ else
+ builder.callback('spinfield', 'plus', div, this.value, builder);
+ });
+
+ minus.addEventListener('click', function() {
+ if (customCallback)
+ customCallback();
+ else
+ builder.callback('spinfield', 'minus', div, this.value, builder);
});
if (data.hidden)
More information about the Libreoffice-commits
mailing list