diff --git a/chrome/content/zotero/import/importWizard.js b/chrome/content/zotero/import/importWizard.js index 3d16905b72..b8625d06f7 100644 --- a/chrome/content/zotero/import/importWizard.js +++ b/chrome/content/zotero/import/importWizard.js @@ -57,7 +57,12 @@ var Zotero_Import_Wizard = { Zotero.Translators.init(); // async }, - + + onCancel: function () { + if (this._translation && this._translation.interrupt) { + this._translation.interrupt(); + } + }, onModeChosen: async function () { var wizard = this._wizard; diff --git a/chrome/content/zotero/import/importWizard.xul b/chrome/content/zotero/import/importWizard.xul index c4eed4c818..4fc12adaf7 100644 --- a/chrome/content/zotero/import/importWizard.xul +++ b/chrome/content/zotero/import/importWizard.xul @@ -10,6 +10,7 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" title="&zotero.import;" + onwizardcancel="Zotero_Import_Wizard.onCancel()" onload="Zotero_Import_Wizard.init()">