Clear tag selector when switching between views
This commit is contained in:
parent
94e92b9f53
commit
2db050290d
|
@ -535,7 +535,6 @@
|
|||
</method>
|
||||
|
||||
|
||||
<!-- Not currently used -->
|
||||
<method name="clearVisible">
|
||||
<body>
|
||||
<![CDATA[
|
||||
|
|
|
@ -993,7 +993,9 @@ var ZoteroPane = new function()
|
|||
* Sets the tag filter on the items view
|
||||
*/
|
||||
function updateTagFilter(){
|
||||
this.itemsView.setFilter('tags', getTagSelection());
|
||||
if (this.itemsView) {
|
||||
this.itemsView.setFilter('tags', getTagSelection());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1034,7 +1036,9 @@ var ZoteroPane = new function()
|
|||
document.getElementById('zotero-items-tree').view = this.itemsView = null;
|
||||
}
|
||||
|
||||
document.getElementById('zotero-tb-search').value = "";
|
||||
// Clear quick search and tag selector when switching views
|
||||
document.getElementById('zotero-tb-search').value = "";
|
||||
document.getElementById('zotero-tag-selector').clearAll();
|
||||
|
||||
if (this.collectionsView.selection.count != 1) {
|
||||
document.getElementById('zotero-items-tree').view = this.itemsView = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user