Fix tag selector display after localstore.rdf has been cleared

This commit is contained in:
Dan Stillman 2007-01-03 11:33:52 +00:00
parent cf603a4b6c
commit e5bb27311d

View File

@ -354,7 +354,8 @@ var ZoteroPane = new function()
function _setTagScope() {
var itemgroup = collectionsView._getItemAtRow(collectionsView.selection.currentIndex);
var tagSelector = document.getElementById('zotero-tag-selector');
if (tagSelector.getAttribute('collapsed') == 'false') {
if (!tagSelector.getAttribute('collapsed') ||
tagSelector.getAttribute('collapsed') == 'false') {
Zotero.debug('Updating tag selector with current tags');
tagSelector.scope = itemgroup.getChildTags();
}