Added green background for new tags in tag input
This commit is contained in:
parent
84e145609a
commit
5285076c05
1 changed files with 6 additions and 0 deletions
|
@ -182,6 +182,8 @@ App.Controls.TagInput = function($underlyingInput) {
|
||||||
flashTagYellow(impliedTagName);
|
flashTagYellow(impliedTagName);
|
||||||
});
|
});
|
||||||
showOrHideSuggestions(tag.suggestions);
|
showOrHideSuggestions(tag.suggestions);
|
||||||
|
} else {
|
||||||
|
flashTagGreen(tagName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,6 +225,10 @@ App.Controls.TagInput = function($underlyingInput) {
|
||||||
flashTag(tagName, 'rgba(255, 255, 200, 1)');
|
flashTag(tagName, 'rgba(255, 255, 200, 1)');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function flashTagGreen(tagName) {
|
||||||
|
flashTag(tagName, 'rgba(200, 255, 200, 1)');
|
||||||
|
}
|
||||||
|
|
||||||
function flashTag(tagName, color) {
|
function flashTag(tagName, color) {
|
||||||
var $elem = getListElement(tagName);
|
var $elem = getListElement(tagName);
|
||||||
$elem.css({backgroundColor: color});
|
$elem.css({backgroundColor: color});
|
||||||
|
|
Loading…
Reference in a new issue