Fix tag selector glitch after removing last tag, again

Better fix than 4e1fbf9747
This commit is contained in:
Dan Stillman 2013-03-16 04:02:27 -04:00
parent edfdbdec1c
commit 5f283a6b7f

View file

@ -329,14 +329,6 @@
break;
}
}
// If tag isn't in scope and is still selected,
// deselect it
if (!inScope && self.selection[name]) {
labels[i].setAttribute('selected', false);
delete self.selection[name];
var doCommand = true;
}
}
// If not in search, hide
@ -371,6 +363,14 @@
empty = false;
}
// If tag isn't in scope and is still selected, deselect it
if (labels[i].getAttribute('hidden') == 'true' && self.selection[name]) {
labels[i].setAttribute('selected', false);
delete self.selection[name];
var doCommand = true;
}
// Always show colored tags at top
if (colorData) {
labels[i].setAttribute('hidden', false);