|
|
@@ -100,16 +100,18 @@ export class SovWidgets { |
|
|
|
static setAutoCompleteField() { |
|
|
|
var autocompleteFields = $('[data-lc-autocomplete-url]'); |
|
|
|
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 |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|