Hide annotations from items list
This commit is contained in:
parent
1c366de546
commit
cbeb5881e9
1 changed files with 2 additions and 0 deletions
|
@ -328,6 +328,8 @@ Zotero.ItemTreeView.prototype.refresh = Zotero.serial(Zotero.Promise.coroutine(f
|
||||||
Zotero.CollectionTreeCache.clear();
|
Zotero.CollectionTreeCache.clear();
|
||||||
// Get the full set of items we want to show
|
// Get the full set of items we want to show
|
||||||
let newSearchItems = yield this.collectionTreeRow.getItems();
|
let newSearchItems = yield this.collectionTreeRow.getItems();
|
||||||
|
// TEMP: Hide annotations
|
||||||
|
newSearchItems = newSearchItems.filter(item => !item.isAnnotation());
|
||||||
// Remove notes and attachments if necessary
|
// Remove notes and attachments if necessary
|
||||||
if (this.regularOnly) {
|
if (this.regularOnly) {
|
||||||
newSearchItems = newSearchItems.filter(item => item.isRegularItem());
|
newSearchItems = newSearchItems.filter(item => item.isRegularItem());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue