commit b21dbbace4165de459af981c3bc67ae6d83cd1cc
parent 10a09884f4b1c6674fe68325646bdd6afbd824d9
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 13 Feb 2012 13:36:18 -0500
Also don't break if replacing a field with a bibliography is cancelled
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -1142,7 +1142,9 @@ Zotero.Integration.Fields.prototype.addField = function(note) {
if(field) {
if(!this._doc.displayAlert(Zotero.getString("integration.replace"),
Components.interfaces.zoteroIntegrationDocument.DIALOG_ICON_STOP,
- Components.interfaces.zoteroIntegrationDocument.DIALOG_BUTTONS_OK_CANCEL)) return false;
+ Components.interfaces.zoteroIntegrationDocument.DIALOG_BUTTONS_OK_CANCEL)) {
+ throw new Zotero.Integration.UserCancelledException;
+ }
}
if(!field) {
@@ -1653,9 +1655,6 @@ Zotero.Integration.Fields.prototype.addEditCitation = function(field, callback)
} else {
newField = true;
var field = this.addField(true);
- if(!field) {
- throw new Zotero.Integration.UserCancelledException;
- }
}
if(!citation) {