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
This commit is contained in:
timeless%mozdev.org 2003-05-30 19:50:11 +00:00
Родитель 151f1552cf
Коммит 932f0bb1c9
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

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

Просмотреть файл

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