Lines 89-95
Link Here
|
89 |
[% IF ( CircAutocompl ) %] |
89 |
[% IF ( CircAutocompl ) %] |
90 |
<script type="text/javascript"> |
90 |
<script type="text/javascript"> |
91 |
$(document).ready(function(){ |
91 |
$(document).ready(function(){ |
92 |
$( "#findborrower" ).autocomplete({ |
92 |
var obj = $( "#findborrower" ).autocomplete({ |
93 |
source: "/cgi-bin/koha/circ/ysearch.pl", |
93 |
source: "/cgi-bin/koha/circ/ysearch.pl", |
94 |
minLength: 3, |
94 |
minLength: 3, |
95 |
select: function( event, ui ) { |
95 |
select: function( event, ui ) { |
Lines 97-109
Link Here
|
97 |
$("#patronsearch").submit(); |
97 |
$("#patronsearch").submit(); |
98 |
return false; |
98 |
return false; |
99 |
} |
99 |
} |
100 |
}) |
100 |
}).data( "ui-autocomplete" ); |
101 |
.data( "ui-autocomplete" )._renderItem = function( ul, item ) { |
101 |
if( obj ) { |
102 |
return $( "<li></li>" ) |
102 |
obj._renderItem = function( ul, item ) { |
103 |
.data( "ui-autocomplete-item", item ) |
103 |
return $( "<li></li>" ) |
104 |
.append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) |
104 |
.data( "ui-autocomplete-item", item ) |
105 |
.appendTo( ul ); |
105 |
.append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" ) |
106 |
}; |
106 |
.appendTo( ul ); |
|
|
107 |
}; |
108 |
} |
107 |
}); |
109 |
}); |
108 |
</script> |
110 |
</script> |
109 |
[% END %] |
111 |
[% END %] |
110 |
- |
|
|