From 89a770d56b79639770daa0aa27177043410b85c0 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 5 Jul 2006 22:08:25 +0000 Subject: [PATCH] include fileInterface.js in overlay.xul so that file export will work make replace work from save dialog --- chrome/chromeFiles/content/scholar/fileInterface.js | 2 +- chrome/chromeFiles/content/scholar/overlay.xul | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/chromeFiles/content/scholar/fileInterface.js b/chrome/chromeFiles/content/scholar/fileInterface.js index e209994085..f647d2554d 100644 --- a/chrome/chromeFiles/content/scholar/fileInterface.js +++ b/chrome/chromeFiles/content/scholar/fileInterface.js @@ -16,7 +16,7 @@ Scholar_File_Interface = new function() { fp.appendFilter(translators[i].label, translators[i].target); } var rv = fp.show(); - if (rv == nsIFilePicker.returnOK) { + if (rv == nsIFilePicker.returnOK || rv == nsIFilePicker.returnReplace) { translation.setLocation(fp.file); translation.setTranslator(translators[fp.filterIndex]); translation.setHandler("done", Scholar_Ingester_Interface.exportDone); diff --git a/chrome/chromeFiles/content/scholar/overlay.xul b/chrome/chromeFiles/content/scholar/overlay.xul index abfe9376bf..8ead9d2c4b 100644 --- a/chrome/chromeFiles/content/scholar/overlay.xul +++ b/chrome/chromeFiles/content/scholar/overlay.xul @@ -12,6 +12,7 @@