[Libreoffice-commits] online.git: Branch 'feature/jsdialogs' - loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Sep 25 08:20:09 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 2ae0078180f8b517843160b121130604d79f3c0d
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Sep 25 10:18:38 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Sep 25 10:18:38 2019 +0200
jsdialogs: read listbox entries
Change-Id: If4bce84fdb809269facc2855491fc8e59fee99b2
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 979ce5a20..66931a071 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -154,6 +154,11 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (data.enabled == 'false')
$(listbox).attr('disabled', 'disabled');
+ for (var index in data.entries) {
+ var option = L.DomUtil.create('option', '', listbox);
+ option.innerHTML = data.entries[index];
+ }
+
return false;
},
More information about the Libreoffice-commits
mailing list