Fix clearing bibliography when all citations have been removed from the document

This commit is contained in:
Simon Kornblith 2012-09-09 17:33:30 -04:00
parent c81c9478d9
commit 4e1f6f63a0

View file

@ -2533,6 +2533,8 @@ Zotero.Integration.Session.prototype.deleteCitation = function(index) {
Zotero.Integration.Session.prototype.getBibliography = function() {
this.updateUncitedItems();
if(Zotero.Utilities.isEmpty(this.citationsByItemID)) return false;
// generate bibliography
var bib = this.style.makeBibliography();