FIX: Cannot set property '_renderItem of undefined
http://stackoverflow.com/questions/9513251/cannot-set-property-renderitem-of-undefined-jquery-ui-autocomplete-with-html
This commit is contained in:
parent
292d3ba959
commit
daa8399764
@ -864,8 +864,8 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
|
||||
.addClass( "ui-widget ui-widget-content ui-corner-left dolibarrcombobox" );
|
||||
|
||||
input.data("ui-autocomplete")._renderItem = function( ul, item ) {
|
||||
return $("<li></li>")
|
||||
.data( "item.autocomplete", item )
|
||||
return $("<li>")
|
||||
.data( "ui-autocomplete-item", item ) // jQuery UI > 1.10.0
|
||||
.append( "<a>" + item.label + "</a>" )
|
||||
.appendTo( ul );
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user