include fileInterface.js in overlay.xul so that file export will work
make replace work from save dialog
This commit is contained in:
parent
c0251085a9
commit
89a770d56b
2 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ Scholar_File_Interface = new function() {
|
||||||
fp.appendFilter(translators[i].label, translators[i].target);
|
fp.appendFilter(translators[i].label, translators[i].target);
|
||||||
}
|
}
|
||||||
var rv = fp.show();
|
var rv = fp.show();
|
||||||
if (rv == nsIFilePicker.returnOK) {
|
if (rv == nsIFilePicker.returnOK || rv == nsIFilePicker.returnReplace) {
|
||||||
translation.setLocation(fp.file);
|
translation.setLocation(fp.file);
|
||||||
translation.setTranslator(translators[fp.filterIndex]);
|
translation.setTranslator(translators[fp.filterIndex]);
|
||||||
translation.setHandler("done", Scholar_Ingester_Interface.exportDone);
|
translation.setHandler("done", Scholar_Ingester_Interface.exportDone);
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<script src="overlay.js"/>
|
<script src="overlay.js"/>
|
||||||
<script src="itemTreeView.js"/>
|
<script src="itemTreeView.js"/>
|
||||||
<script src="collectionTreeView.js"/>
|
<script src="collectionTreeView.js"/>
|
||||||
|
<script src="fileInterface.js"/>
|
||||||
|
|
||||||
<commandset id="mainCommandSet">
|
<commandset id="mainCommandSet">
|
||||||
<command id="cmd_scholar_newItem" oncommand="ScholarPane.newItem(1);"/>
|
<command id="cmd_scholar_newItem" oncommand="ScholarPane.newItem(1);"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue