Bug 41119: Add missing function to acqui-home.tt

TEST PLAN:
DO NOT APPLY PATCH BEFORE TESTING
1 - Go to histsearch.pl, type "ko" in "Basket created by" -> autocompletion starts
2 - Go to acqui-home.pl, type "ko" in "Basket created by" -> autocompletion is ko
3 - Apply patch
4 - Go to histsearch.pl, type "ko" in "Basket created by" -> autocompletion starts
5 - Go to acqui-home.pl, type "ko" in "Basket created by" -> autocompletion starts

Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>

Amended-by: Jonathan Druart
Tidy
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Baptiste Wojtkowski 2025-10-30 15:18:55 +00:00 committed by Lucas Gass
parent 19c7179a13
commit b0656241de
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 10 additions and 0 deletions

View File

@ -281,6 +281,16 @@
$("#accounts").DataTable().draw();
});
patron_autocomplete($("#find_patron"), {
"on-select-add-to": {
container: $("#basket_creators"),
input_name: "created_by",
},
"on-select-callback": function (event, ui) {
$("#find_patron").val("").focus();
return false;
},
});
});
</script>
[% END %]