Colored tags weren't shown in collections with no other tags

This commit is contained in:
Dan Stillman 2013-04-12 14:15:31 -04:00
parent 8ea86d77d3
commit ef3a5755f8

View File

@ -369,12 +369,13 @@
delete self.selection[name];
var doCommand = true;
}
// Always show colored tags at top
if (colorData) {
// Always show colored tags at top, unless they
// don't match an active tag search
if (colorData && (!self._search || inSearch)) {
labels[i].setAttribute('hidden', false);
labels[i].setAttribute('hasColor', true);
empty = false;
}
else {
labels[i].removeAttribute('hasColor');