Closed phette23 closed 4 years ago
In this gif I'm pressing Enter first & then spacebar; neither selects the highlighted autocomplete item (the highlighting in effect does nothing):
The autocomplete implementation appears to be a <script> tag on the page:
<script>
<script type="text/javascript"> $(document).ready(function(){ var obj = $( "#findborrower" ).autocomplete({ source: "/cgi-bin/koha/circ/ysearch.pl", minLength: 3, }).data( "ui-autocomplete" ); if( obj ) { obj._renderItem = function( ul, item ) { var cardnumber = ""; if( item.cardnumber != "" ){ // Display card number in parentheses if it exists cardnumber = " (" + item.cardnumber + ") "; } return $( "<li></li>" ) .data( "ui-autocomplete-item", item ) .append( "<a href=\"/cgi-bin/koha/circ/circulation.pl?borrowernumber=" + item.borrowernumber + "\">" + item.surname + ", " + item.firstname + cardnumber + " <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) .appendTo( ul ); }; } }); </script>
Koha bug #23518
In this gif I'm pressing Enter first & then spacebar; neither selects the highlighted autocomplete item (the highlighting in effect does nothing):![patron autocomplete](https://user-images.githubusercontent.com/1024833/66864784-cef08b80-ef4a-11e9-906f-a6063f860c29.gif)
The autocomplete implementation appears to be a
<script>
tag on the page: