Permalink
Browse files

Merge branch 'master' of github.com:loopj/jquery-tokeninput

  • Loading branch information...
2 parents 1538300 + 8b44ebd commit b329acd9e4ff4b10f695a7df3f6052a5c657ddb7 @loopj loopj committed Jun 12, 2011
Showing with 4 additions and 1 deletion.
  1. BIN .DS_Store
  2. +4 −1 src/jquery.tokeninput.js
View
BIN .DS_Store
Binary file not shown.
View
@@ -29,7 +29,8 @@ var DEFAULT_SETTINGS = {
animateDropdown: true,
onResult: null,
onAdd: null,
- onDelete: null
+ onDelete: null,
+ idPrefix: "token-input-"
};
// Default classes to use when theming
@@ -162,13 +163,15 @@ $.TokenList = function (input, url_or_data, settings) {
.css({
outline: "none"
})
+ .attr("id", settings.idPrefix + input.id)
.focus(function () {
if (settings.tokenLimit === null || settings.tokenLimit !== token_count) {
show_dropdown_hint();
}
})
.blur(function () {
hide_dropdown();
+ $(this).val("");
})
.bind("keyup keydown blur update", resize_input)
.keydown(function (event) {

0 comments on commit b329acd

Please sign in to comment.