From d55f945acd26ffbdac3c6166ecbe3303be1f38a5 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 28 Mar 2007 19:32:56 +0000 Subject: [PATCH] Addresses #596, Auto-append appropriate file extension when none specified in Save dialog I think this is the real fix --- chrome/content/zotero/fileInterface.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js index 4c17d8518..a66725628 100644 --- a/chrome/content/zotero/fileInterface.js +++ b/chrome/content/zotero/fileInterface.js @@ -63,6 +63,7 @@ Zotero_File_Exporter.prototype.save = function() { } else { // if the result will be a file, append an extension and use filters fp.defaultString = this.name+"."+io.selectedTranslator.target; + fp.defaultExtension = io.selectedTranslator.target; fp.appendFilter(io.selectedTranslator.label, "*."+io.selectedTranslator.target); }