www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 2db050290d8b88a78da4540c8de32b6c48676951
parent 94e92b9f53c5e9c7a39db00260350e84250c53d2
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  5 Aug 2011 22:04:48 +0000

Clear tag selector when switching between views


Diffstat:
Mchrome/content/zotero/bindings/tagselector.xml | 1-
Mchrome/content/zotero/zoteroPane.js | 8++++++--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml @@ -535,7 +535,6 @@ </method> - <!-- Not currently used --> <method name="clearVisible"> <body> <![CDATA[ diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -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;