Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Updated to allow parseName callback to fully control the content of LI.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgorbatchev committed Jun 6, 2011
1 parent 8da9413 commit 9cd8bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jquery.tokeninput.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,10 @@ $.TokenList = function (input, url_or_data, settings) {
if(settings.parseName) {
token_name = settings.parseName(object);
} else {
token_name = object.name;
token_name = "<p>"+ object.name +"</p>";
}

var this_token = $("<li><p>"+ token_name +"</p></li>")
var this_token = $("<li>"+ token_name +"</li>")
.addClass(settings.classes.token)
.insertBefore(input_token)
.attr('data-uniqueid', uniqueid);
Expand Down

0 comments on commit 9cd8bbf

Please sign in to comment.