summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/compare_autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/compare_autocomplete.js')
-rw-r--r--app/assets/javascripts/compare_autocomplete.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/compare_autocomplete.js b/app/assets/javascripts/compare_autocomplete.js
index 4e3a28cd163..294d2c9052c 100644
--- a/app/assets/javascripts/compare_autocomplete.js
+++ b/app/assets/javascripts/compare_autocomplete.js
@@ -23,8 +23,9 @@
selectable: true,
filterable: true,
filterByText: true,
- fieldName: $dropdown.attr('name'),
- filterInput: 'input[type="text"]',
+ toggleLabel: true,
+ fieldName: $dropdown.data('field-name'),
+ filterInput: 'input[type="search"]',
renderRow: function(ref) {
var link;
if (ref.header != null) {