Added banned tag input prevention
This commit is contained in:
parent
752af358df
commit
8f56018140
1 changed files with 8 additions and 3 deletions
|
@ -155,9 +155,14 @@ App.Controls.TagInput = function($underlyingInput) {
|
|||
flashTagRed(tagName);
|
||||
} else {
|
||||
beforeTagAdded(tagName, options);
|
||||
tags.push(tagName);
|
||||
var $elem = createListElement(tagName);
|
||||
$tagList.append($elem);
|
||||
|
||||
var exportedTag = getExportedTag(tagName);
|
||||
if (!exportedTag || !exportedTag.banned) {
|
||||
tags.push(tagName);
|
||||
var $elem = createListElement(tagName);
|
||||
$tagList.append($elem);
|
||||
}
|
||||
|
||||
afterTagAdded(tagName, options);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue