Permalink
Browse files

Merge pull request #37 from devbrothers/master

Multiple tags-input instances fix
  • Loading branch information...
2 parents 50a6233 + 51d058c commit bc50b025fb1124c71cd1119f2d649e398c7dcdf2 @benbrown benbrown committed Apr 11, 2012
Showing with 5 additions and 4 deletions.
  1. +4 −3 jquery.tagsinput.js
  2. +1 −1 jquery.tagsinput.min.js
View
@@ -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,
@@ -324,7 +326,6 @@
});
}
} // if settings.interactive
- return false;
});
return this;
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit bc50b02

Please sign in to comment.