Display bibliography placeholder when there is a bibliography in the document, but no items cited

This commit is contained in:
Simon Kornblith 2009-09-20 00:03:13 +00:00
parent 6fc6dbe4e5
commit 4278d60710

View file

@ -580,7 +580,11 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations,
var bibliographyText = this._session.getBibliography();
for each(var field in this._bibliographyFields) {
field.setText(bibliographyText, true);
if(bibliographyText) {
field.setText(bibliographyText, true);
} else {
field.setText("{Bibliography}", false);
}
}
}