blob: 4d079015c9c0ff019ed3e4c069b4d8c19514d1f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Add the hook in for catcomplete.
// We add it here instead of a tw2.jquery_ui template because it must
// be executed before *any* other plugins reference jquery ui proper
$(document).ready(function() {
$.widget( "custom.catcomplete", $.ui.autocomplete, {
_renderItem: function( ul, item) {
return $( "<li></li>" )
.data( "item.autocomplete", item )
.append( $( "<a></a>" ).html( item.label ) )
.appendTo( ul );
}
});
});
|