www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4e1f6f63a03c060a3bf021bef469b6176f698f0b
parent c81c9478d9fc3cb71b482edcd89e5ec6ce19d923
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun,  9 Sep 2012 17:33:30 -0400

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

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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();