mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added green background for new tags in tag input
This commit is contained in:
@ -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});
|
||||
|
Reference in New Issue
Block a user