Bug 184108 Save As <<filename>> without <<.html>> extention result is a html file <<filename>> and a directory <<_files>>

Patches by timeless/biesi r=biesi/timeless sr=bz


git-svn-id: svn://10.0.0.236/trunk@143113 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org 2003-05-30 19:50:11 +00:00
parent cf3804def9
commit e8fa060083
2 changed files with 2 additions and 4 deletions

View File

@ -407,8 +407,7 @@ function onLoad() {
filesFolder = Components .classes[lfContractID].createInstance(lfIID);
filesFolder.initWithPath(persistArgs.target.path);
var nameWithoutExtension = filesFolder.leafName;
nameWithoutExtension = nameWithoutExtension.substring(0, nameWithoutExtension.lastIndexOf("."));
var nameWithoutExtension = filesFolder.leafName.replace(/\.[^.]*$/, "");
var filesFolderLeafName = getString("filesFolder");
filesFolderLeafName = filesFolderLeafName.replace(/\^BASE\^/, nameWithoutExtension);

View File

@ -370,8 +370,7 @@ function foundHeaderInfo(aSniffer, aData)
filesFolder = Components .classes[lfContractID].createInstance(lfIID);
filesFolder.initWithPath(persistArgs.target.path);
var nameWithoutExtension = filesFolder.leafName;
nameWithoutExtension = nameWithoutExtension.substring(0, nameWithoutExtension.lastIndexOf("."));
var nameWithoutExtension = filesFolder.leafName.replace(/\.[^.]*$/, "");
var filesFolderLeafName = getStringBundle().formatStringFromName("filesFolder",
[nameWithoutExtension],
1);