Skip to content

Commit 72955a5

Browse files
author
Dan Brooke
committed
Added the ability to specify a className in the json which will be applied to the token
1 parent f1ad560 commit 72955a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.tokeninput.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ $.TokenList = function (input, url_or_data, settings) {
598598
var readonly = item.readonly === true ? true : false;
599599

600600
if(readonly) $this_token.addClass($(input).data("settings").classes.tokenReadOnly);
601-
601+
if (item.className) $this_token.addClass(item.className);
602602
$this_token.addClass($(input).data("settings").classes.token).insertBefore(input_token);
603603

604604
// The 'delete token' button

0 commit comments

Comments
 (0)