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