summaryrefslogtreecommitdiff
path: root/app/utils/static/autocomplete.js
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
committerlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
commitbb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch)
tree6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/utils/static/autocomplete.js
initial commit
Diffstat (limited to 'app/utils/static/autocomplete.js')
-rw-r--r--app/utils/static/autocomplete.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/utils/static/autocomplete.js b/app/utils/static/autocomplete.js
new file mode 100644
index 0000000..514a064
--- /dev/null
+++ b/app/utils/static/autocomplete.js
@@ -0,0 +1,10 @@
+function autoCompleteItems() {
+ var item = document.getElementById('id_ap');
+ var singlePresetOpts = new Choices(item, {
+ searchPlaceholderValue: 'Search for Animal',
+ placeholder: true,
+ });
+}
+document.addEventListener("DOMContentLoaded", function(event) {
+ autoCompleteItems();
+});