From 449eae031f8f68aef16d52cdb4faf34347ffccdd Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 18 Dec 2011 16:08:48 -0500 Subject: [PATCH] Fix cancelling editing of citations --- chrome/content/zotero/xpcom/integration.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 529cc031c0..33e1db5c92 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1388,9 +1388,11 @@ Zotero.Integration.Fields.prototype.addEditCitation = function(field, callback) me.updateSession(doAccept); } }); - } else if(newField) { - // New citation was cancelled - field.delete(); + } else { + if(newField) { + // New citation was cancelled + field.delete(); + } callback(); } }