From 5285076c05a42ce44766cb3048ecb8a78991475a Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 9 Nov 2014 20:07:14 +0100 Subject: [PATCH] Added green background for new tags in tag input --- public_html/js/Controls/TagInput.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public_html/js/Controls/TagInput.js b/public_html/js/Controls/TagInput.js index 5a71b1b4..deeabc23 100644 --- a/public_html/js/Controls/TagInput.js +++ b/public_html/js/Controls/TagInput.js @@ -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});