Don't display an error if adding a citation is cancelled

This commit is contained in:
Simon Kornblith 2012-02-08 16:40:02 -05:00
parent 0daf51e05c
commit 6a3ce4292e

View file

@ -1067,9 +1067,6 @@ Zotero.Integration.Document.prototype.setDocPrefs = function() {
// pass to conversion function
me._doc.convert(new Zotero.Integration.Document.JSEnumerator(fieldsToConvert),
me._session.data.prefs.fieldType, fieldNoteTypes, fieldNoteTypes.length);
// clear fields so that they will get collected again before refresh
me._fields = undefined;
}
// refresh contents
@ -1656,6 +1653,7 @@ Zotero.Integration.Fields.prototype.addEditCitation = function(field, callback)
} else {
newField = true;
var field = this.addField(true);
if(!field) return;
}
if(!citation) {