[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 9 15:36:23 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 9cf13e86b061588134c5e1796b4249f558b20b88
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Oct 9 17:35:59 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Oct 9 17:35:59 2019 +0200
jsdialogs: make combobox items different style
Change-Id: I1e1c1a2b211ab1c1f4fa5f298c480ced293fe53e
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 449072d9c..3742d9a2a 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -407,7 +407,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
var entries = [];
for (var index in data.entries) {
- var entry = { type: 'fixedtext', text: data.entries[index] };
+ var entry = { type: 'fixedtext', text: data.entries[index], isComboboxItem: true };
entries.push(entry);
}
@@ -423,6 +423,11 @@ L.Control.JSDialogBuilder = L.Control.extend({
fixedtext.innerHTML = builder._cleanText(data.text);
fixedtext.id = data.id;
+ if (data.isComboboxItem) {
+ $(fixedtext).removeClass('ui-text');
+ $(fixedtext).addClass('ui-combobox-text');
+ }
+
if (data.hidden)
$(fixedtext).hide();
More information about the Libreoffice-commits
mailing list