commit 10a09884f4b1c6674fe68325646bdd6afbd824d9 parent bd152fa3624ae4e5bd0522d4574229c8ff1edd53 Author: Simon Kornblith <simon@simonster.com> Date: Mon, 13 Feb 2012 13:33:48 -0500 Cancelling the "replace this field" box should not break integration Diffstat:
| M | 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 @@ -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) {