Commit 287f5754 authored by csillag's avatar csillag

Revert to upstream tag-it

We have added a few enhancements of tag-it,
but since we have stopped using them, there is no point in keeping
them. Therefore I am reverting to the unmodified upstream version.
parent 5e973f16
......@@ -32,7 +32,6 @@
caseSensitive : true,
fieldName : 'tags',
placeholderText : null, // Sets `placeholder` attr on input field.
keepPlaceholder : false, // Keep the 'placeholder' even when there is content
readOnly : false, // Disables editing.
removeConfirmation: false, // Require confirmation to remove tags.
tagLimit : null, // Max number of tags allowed (null for unlimited).
......@@ -477,12 +476,6 @@
duringInitialization: duringInitialization
});
// Now that we already have a tag,
// remove the placeholder from the input field
if (!this.options.keepPlaceholder) {
this.tagInput.attr("placeholder", "");
}
if (this.options.showAutocompleteOnFocus && !duringInitialization) {
setTimeout(function () { that._showAutocomplete(); }, 0);
}
......@@ -525,12 +518,6 @@
this._trigger('afterTagRemoved', null, {tag: tag, tagLabel: this.tagLabel(tag)});
}
// If no tags are left,
// re-add the placeholder text to the tag input field
if (!this.assignedTags().length && this.options.placeholderText && !this.options.keepPlaceholder) {
this.tagInput.attr('placeholder', this.options.placeholderText);
}
},
removeTagByLabel: function(tagLabel, animate) {
......@@ -551,3 +538,4 @@
});
})(jQuery);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment