Fix saving to group libraries

This commit is contained in:
Simon Kornblith 2011-09-28 04:01:39 +00:00
parent b1275032f5
commit 0a33f1fde7

View file

@ -1910,16 +1910,7 @@ var ZoteroPane = new function()
this.getSelectedLibraryID = function () {
var itemGroup = this.getItemGroup();
var groupID = this.getSelectedGroup(true);
if (groupID) {
return groupID;
}
else if (itemGroup.isWithinGroup()) {
return itemGroup.ref.libraryID;
}
else {
return null;
}
return itemGroup && itemGroup.ref && itemGroup.ref.libraryID ? itemGroup.ref.libraryID : null;
}