commit 7aea4fabf9952b9f4b88f226ab93477c5d9d5e95
parent 135c47944d4485413c81ead431aa2e14e6c95dd2
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 22 Mar 2011 02:24:58 +0000
Debug code for library selection issues
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
@@ -1737,15 +1737,18 @@ var ZoteroPane = new function()
var currentLibraryID = this.getSelectedLibraryID();
// If in a different library
if (item.libraryID != currentLibraryID) {
+ Zotero.debug("Library ID differs; switching library");
this.collectionsView.selectLibrary(item.libraryID);
}
// Force switch to library view
else if (!this.itemsView._itemGroup.isLibrary() && inLibrary) {
+ Zotero.debug("Told to select in library; switching to library");
this.collectionsView.selectLibrary(item.libraryID);
}
var selected = this.itemsView.selectItem(itemID, expand);
if (!selected) {
+ Zotero.debug("Item was not selected; switching to library");
this.collectionsView.selectLibrary(item.libraryID);
this.itemsView.selectItem(itemID, expand);
}