зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
151f1552cf
Коммит
932f0bb1c9
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче