Fix error selecting separator above Group Libraries

This is super annoying, but I can't seem to stop the separator row from
being selected in seltype="single" mode (where isSelectable() isn't
called). Until we have a better solution, at least clear the items list
and avoid an error.
This commit is contained in:
Dan Stillman 2013-03-19 06:53:48 -04:00
parent 78618ff88b
commit 1647f28135

View File

@ -1093,12 +1093,10 @@ var ZoteroPane = new function()
var itemgroup = this.collectionsView._getItemAtRow(this.collectionsView.selection.currentIndex);
/*
if (itemgroup.isSeparator()) {
document.getElementById('zotero-items-tree').view = this.itemsView = null;
return;
}
*/
itemgroup.setSearch('');
itemgroup.setTags(getTagSelection());