Merge pull request #4122 from mrsof/patch-7
FIX: Cannot set property '_renderItem of undefined
This commit is contained in:
commit
63879c1ca6
@ -864,8 +864,8 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
|
|||||||
.addClass( "ui-widget ui-widget-content ui-corner-left dolibarrcombobox" );
|
.addClass( "ui-widget ui-widget-content ui-corner-left dolibarrcombobox" );
|
||||||
|
|
||||||
input.data("ui-autocomplete")._renderItem = function( ul, item ) {
|
input.data("ui-autocomplete")._renderItem = function( ul, item ) {
|
||||||
return $("<li></li>")
|
return $("<li>")
|
||||||
.data( "item.autocomplete", item )
|
.data( "ui-autocomplete-item", item ) // jQuery UI > 1.10.0
|
||||||
.append( "<a>" + item.label + "</a>" )
|
.append( "<a>" + item.label + "</a>" )
|
||||||
.appendTo( ul );
|
.appendTo( ul );
|
||||||
};
|
};
|
||||||
|
|||||||
@ -170,8 +170,8 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption='', $minLengt
|
|||||||
}
|
}
|
||||||
,delay: 500
|
,delay: 500
|
||||||
}).data("ui-autocomplete")._renderItem = function( ul, item ) {
|
}).data("ui-autocomplete")._renderItem = function( ul, item ) {
|
||||||
return $("<li></li>")
|
return $("<li>")
|
||||||
.data( "item.autocomplete", item )
|
.data( "ui-autocomplete-item", item ) // jQuery UI > 1.10.0
|
||||||
.append( \'<a><span class="tag">\' + item.label + "</span></a>" )
|
.append( \'<a><span class="tag">\' + item.label + "</span></a>" )
|
||||||
.appendTo(ul);
|
.appendTo(ul);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user