Skip to content

Commit

Permalink
clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aehlke committed Nov 25, 2012
1 parent bcd92a2 commit 89a7076
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@
$.widget('ui.tagit', {
options: {
fieldName : 'tags',

// Used for autocomplete, unless you override `autocomplete.source`.
availableTags : [],
removeConfirmation: false, // Require confirmation to remove tags.

allowDuplicates : false,
caseSensitive : true,
placeholderText : null, // Sets `placeholder` attr on input field.
allowDuplicates : false,
readOnly : false, // Disables editing.
removeConfirmation: false, // Require confirmation to remove tags.

// Use to override or add any options to the autocomplete widget.
//
Expand Down Expand Up @@ -121,10 +124,13 @@
}

this.tagInput = $('<input type="text" />').addClass('ui-widget-content');

if (this.options.readOnly) this.tagInput.attr('disabled', 'disabled');

if (this.options.tabIndex) {
this.tagInput.attr('tabindex', this.options.tabIndex);
}

if (this.options.placeholderText) {
this.tagInput.attr('placeholder', this.options.placeholderText);
}
Expand Down
2 changes: 1 addition & 1 deletion js/tag-it.min.js

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

0 comments on commit 89a7076

Please sign in to comment.