commit 449eae031f8f68aef16d52cdb4faf34347ffccdd parent 917d928d7957fdebfde6bebf84b366857618dcc9 Author: Simon Kornblith <simon@simonster.com> Date: Sun, 18 Dec 2011 16:08:48 -0500 Fix cancelling editing of citations Diffstat:
| M | 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 @@ -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(); } }