commit 89a770d56b79639770daa0aa27177043410b85c0
parent c0251085a9d0c6bd1b87594ac9f59316715493f9
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 5 Jul 2006 22:08:25 +0000
include fileInterface.js in overlay.xul so that file export will work
make replace work from save dialog
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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
@@ -12,6 +12,7 @@
<script src="overlay.js"/>
<script src="itemTreeView.js"/>
<script src="collectionTreeView.js"/>
+ <script src="fileInterface.js"/>
<commandset id="mainCommandSet">
<command id="cmd_scholar_newItem" oncommand="ScholarPane.newItem(1);"/>