From ef3a5755f89b323b1b3e14b25acd2526429afee4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 12 Apr 2013 14:15:31 -0400 Subject: [PATCH] Colored tags weren't shown in collections with no other tags --- chrome/content/zotero/bindings/tagselector.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml index 413fa516e1..2ca9ffc6bc 100644 --- a/chrome/content/zotero/bindings/tagselector.xml +++ b/chrome/content/zotero/bindings/tagselector.xml @@ -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');