Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b329acd9e4ff4b10f695a7df3f6052a5c657ddb7 2 parents 1538300 + 8b44ebd
@loopj loopj authored
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
5 src/jquery.tokeninput.js
@@ -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,6 +163,7 @@ $.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();
@@ -169,6 +171,7 @@ $.TokenList = function (input, url_or_data, settings) {
})
.blur(function () {
hide_dropdown();
+ $(this).val("");
})
.bind("keyup keydown blur update", resize_input)
.keydown(function (event) {
Please sign in to comment.
Something went wrong with that request. Please try again.