
| Current Path : /var/www/html/ift/web/core/themes/claro/js/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/themes/claro/js/autocomplete.js |
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal) {
Drupal.behaviors.claroAutoCompete = {
attach: function attach(context) {
$(context).find('input.form-autocomplete').once('claroAutoComplete').each(function (index, value) {
var $input = $(value);
var timeout = 400;
var classRemoveTimeout = void 0;
var classRemove = function classRemove($autoCompleteElem) {
$autoCompleteElem.removeClass('is-autocompleting');
};
$input.on('input autocompletesearch autocompleteresponses', function (event) {
if (event && event.type && event.type === 'autocompletesearch') {
$(event.target).addClass('is-autocompleting');
}
clearTimeout(classRemoveTimeout);
classRemoveTimeout = setTimeout(classRemove, timeout, $(event.target));
});
});
}
};
})(jQuery, Drupal);