From 4e1f6f63a03c060a3bf021bef469b6176f698f0b Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 9 Sep 2012 17:33:30 -0400 Subject: [PATCH] Fix clearing bibliography when all citations have been removed from the document --- chrome/content/zotero/xpcom/integration.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 46a2c52c46..aa0841a82c 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -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();