Added green background for new tags in tag input

This commit is contained in:
Marcin Kurczewski 2014-11-09 20:07:14 +01:00
parent 84e145609a
commit 5285076c05

View file

@ -182,6 +182,8 @@ App.Controls.TagInput = function($underlyingInput) {
flashTagYellow(impliedTagName);
});
showOrHideSuggestions(tag.suggestions);
} else {
flashTagGreen(tagName);
}
}
@ -223,6 +225,10 @@ App.Controls.TagInput = function($underlyingInput) {
flashTag(tagName, 'rgba(255, 255, 200, 1)');
}
function flashTagGreen(tagName) {
flashTag(tagName, 'rgba(200, 255, 200, 1)');
}
function flashTag(tagName, color) {
var $elem = getListElement(tagName);
$elem.css({backgroundColor: color});