|
|
|
|
|
|
|
|
static setAutoCompleteField() { |
|
|
static setAutoCompleteField() { |
|
|
var autocompleteFields = $('[data-lc-autocomplete-url]'); |
|
|
var autocompleteFields = $('[data-lc-autocomplete-url]'); |
|
|
autocompleteFields.each(function () { |
|
|
autocompleteFields.each(function () { |
|
|
var $this = $(this), |
|
|
|
|
|
url = $this.data('lc-autocomplete-url'); |
|
|
|
|
|
|
|
|
|
|
|
$this.autoComplete({ |
|
|
|
|
|
//bootstrapVersion: 4, |
|
|
|
|
|
//noResultsText: 'Aucun résultat n\'a été trouvé.', |
|
|
|
|
|
resolverSettings: { |
|
|
|
|
|
url: url |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
if(!$(this).hasClass('autocomplete-disabled')) { |
|
|
|
|
|
var $this = $(this), |
|
|
|
|
|
url = $this.data('lc-autocomplete-url'); |
|
|
|
|
|
|
|
|
|
|
|
$this.autoComplete({ |
|
|
|
|
|
//bootstrapVersion: 4, |
|
|
|
|
|
//noResultsText: 'Aucun résultat n\'a été trouvé.', |
|
|
|
|
|
resolverSettings: { |
|
|
|
|
|
url: url |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|