Fixed tag input behavior for initial text
This commit is contained in:
parent
c0a5c800e0
commit
5769034223
1 changed files with 13 additions and 13 deletions
|
@ -205,21 +205,21 @@ App.Controls.TagInput = function($underlyingInput) {
|
||||||
function afterTagAdded(tagName, source) {
|
function afterTagAdded(tagName, source) {
|
||||||
if (source === SOURCE_IMPLICATIONS) {
|
if (source === SOURCE_IMPLICATIONS) {
|
||||||
flashTagYellow(tagName);
|
flashTagYellow(tagName);
|
||||||
}
|
} else if (source !== SOURCE_INITIAL_TEXT) {
|
||||||
|
var tag = getExportedTag(tagName);
|
||||||
var tag = getExportedTag(tagName);
|
if (tag) {
|
||||||
if (tag) {
|
_.each(tag.implications, function(impliedTagName) {
|
||||||
_.each(tag.implications, function(impliedTagName) {
|
if (!isTaggedWith(impliedTagName)) {
|
||||||
if (!isTaggedWith(impliedTagName)) {
|
addTag(impliedTagName, SOURCE_IMPLICATIONS);
|
||||||
addTag(impliedTagName, SOURCE_IMPLICATIONS);
|
}
|
||||||
|
});
|
||||||
|
if (source !== SOURCE_IMPLICATIONS && source !== SOURCE_SUGGESTIONS) {
|
||||||
|
showOrHideSuggestions(tagName);
|
||||||
|
refreshShownSiblings();
|
||||||
}
|
}
|
||||||
});
|
} else {
|
||||||
if (source !== SOURCE_IMPLICATIONS && source !== SOURCE_SUGGESTIONS) {
|
flashTagGreen(tagName);
|
||||||
showOrHideSuggestions(tagName);
|
|
||||||
refreshShownSiblings();
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
flashTagGreen(tagName);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue