include fileInterface.js in overlay.xul so that file export will work

make replace work from save dialog
This commit is contained in:
Simon Kornblith 2006-07-05 22:08:25 +00:00
parent c0251085a9
commit 89a770d56b
2 changed files with 2 additions and 1 deletions

View file

@ -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);

View file

@ -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);"/>