From 10a09884f4b1c6674fe68325646bdd6afbd824d9 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 13 Feb 2012 13:33:48 -0500 Subject: [PATCH] Cancelling the "replace this field" box should not break integration --- chrome/content/zotero/xpcom/integration.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index cfcd6dba0d..1e5e9ee2a3 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1653,7 +1653,9 @@ Zotero.Integration.Fields.prototype.addEditCitation = function(field, callback) } else { newField = true; var field = this.addField(true); - if(!field) return; + if(!field) { + throw new Zotero.Integration.UserCancelledException; + } } if(!citation) {