loleaflet/src/control/Control.JSDialogBuilder.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit 30b0749051c6b832132cfcc343597d39122dabc4 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Thu Oct 24 11:42:39 2019 +0200 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Thu Oct 24 11:42:39 2019 +0200 jsdialogs: add class for selected combobox entry Change-Id: Ie3f49ae983d0aef8a821f5dc52094c07c902e436 diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index 4584981d1..5e852f699 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -559,7 +559,12 @@ L.Control.JSDialogBuilder = L.Control.extend({ var entries = []; for (var index in data.entries) { - var entry = { type: 'comboboxentry', text: data.entries[index], pos: index, parent: data, style: 'ui-combobox-text' }; + var style = 'ui-combobox-text'; + if (index == data.selectedEntries[0]) { + style += ' selected'; + } + + var entry = { type: 'comboboxentry', text: data.entries[index], pos: index, parent: data, style: style }; entries.push(entry); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits