summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/autocomplete.es6.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/misc/autocomplete.es6.js')
-rw-r--r--core/misc/autocomplete.es6.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/misc/autocomplete.es6.js b/core/misc/autocomplete.es6.js
index 1b5d87914696..82a79eb9d9e3 100644
--- a/core/misc/autocomplete.es6.js
+++ b/core/misc/autocomplete.es6.js
@@ -3,7 +3,7 @@
* Autocomplete based on jQuery UI.
*/
-(function($, Drupal) {
+(function ($, Drupal) {
let autocomplete;
/**
@@ -196,9 +196,7 @@
* jQuery collection of the ul element.
*/
function renderItem(ul, item) {
- return $('<li>')
- .append($('<a>').html(item.label))
- .appendTo(ul);
+ return $('<li>').append($('<a>').html(item.label)).appendTo(ul);
}
/**
@@ -226,7 +224,7 @@
firstCharacterBlacklist: blacklist || '',
});
// Use jQuery UI Autocomplete on the textfield.
- $autocomplete.autocomplete(autocomplete.options).each(function() {
+ $autocomplete.autocomplete(autocomplete.options).each(function () {
$(this).data('ui-autocomplete')._renderItem =
autocomplete.options.renderItem;
});