summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-05-06 10:49:47 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2020-05-18 14:22:09 +0200
commit9eb64fd441a50b55b77f252fc7e2aedfb3b0d385 (patch)
tree49449e2cbf7e62222f6182453547c5ec13b2a256
parentAdd spell check dialog in mobile menu (diff)
downloadonline-feature/jsdialogs.tar.gz
online-feature/jsdialogs.zip
jsdialog: use edit instead of combobox in find & replace feature/jsdialogs
Change-Id: I1d365ef8ac3860ffa581f830c1b989842532723a
-rw-r--r--loleaflet/src/control/Control.JSDialogBuilder.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 492bbe3dd3..0de7e0aba3 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1393,8 +1393,12 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (data.id === 'applystyle' ||
data.id === 'fontnamecombobox' ||
data.id === 'fontsizecombobox' ||
- data.id === 'FontBox')
+ data.id === 'FontBox') {
builder._listboxControl(parentContainer, data, builder);
+ } else if (data.id === 'searchterm' ||
+ data.id === 'replaceterm') {
+ builder._editControl(parentContainer, data, builder);
+ }
else
builder._explorableEditControl(parentContainer, data, builder);
},