Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #37 from devbrothers/master
Browse files Browse the repository at this point in the history
Multiple tags-input instances fix
  • Loading branch information
Ben Brown committed Apr 11, 2012
2 parents 50a6233 + 51d058c commit bc50b02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions jquery.tagsinput.js
Expand Up @@ -196,8 +196,10 @@
if (settings.hide) {
$(this).hide();
}

var id = $(this).attr('id')
var id = $(this).attr('id');
if (!id || delimiter[$(this).attr('id')]) {
id = $(this).attr('id', 'tags' + new Date().getTime()).attr('id');
}

var data = jQuery.extend({
pid:id,
Expand Down Expand Up @@ -324,7 +326,6 @@
});
}
} // if settings.interactive
return false;
});

return this;
Expand Down
2 changes: 1 addition & 1 deletion jquery.tagsinput.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc50b02

Please sign in to comment.