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

Commit

Permalink
updated script to work properly with multiple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
melkorm committed Jan 2, 2012
1 parent 6d2b1d3 commit 51d058c
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
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,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 @@ -321,7 +323,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 51d058c

Please sign in to comment.