oops: there is no wrappedJSObject for collectionsView

This commit is contained in:
Simon Kornblith 2010-08-01 19:57:42 +00:00
parent b285f6a7d4
commit 84fcd7d4b8

View File

@ -127,7 +127,7 @@ var Zotero_Citation_Dialog = new function () {
// switch to library if item doesn't exist in current selection
if(collectionsView.getSelectedCollection() && !collectionsView.getSelectedCollection().hasItem(io.citation.citationItems[0].id)) {
var item = Zotero.Items.get(io.citation.citationItems[0].id);
collectionsView.wrappedJSObject.selectLibrary(item.libraryID);
collectionsView.selectLibrary(item.libraryID);
}
itemsView.wrappedJSObject.selectItem(io.citation.citationItems[0].id);