2000-01-08 09:07:11 +00:00
|
|
|
var bundle = srGetStrBundle("chrome://pref/locale/prefutilities.properties");
|
2000-01-07 06:52:11 +00:00
|
|
|
|
|
|
|
function prefNavSelectFile()
|
|
|
|
{
|
|
|
|
var folderField = document.getElementById("browserStartupHomepage");
|
|
|
|
var url = getFileOrFolderURL( bundle.GetStringFromName("choosehomepage"), false );
|
|
|
|
if( url != -1 )
|
|
|
|
folderField.value = url;
|
|
|
|
}
|
|
|
|
|
|
|
|
function setHomePageToCurrentPage()
|
|
|
|
{
|
|
|
|
if( !parent.opener.appCore )
|
|
|
|
return false;
|
|
|
|
var homePageField = document.getElementById("browserStartupHomepage");
|
|
|
|
var url = parent.opener.content.location.href;
|
|
|
|
if( url )
|
2000-01-08 09:07:11 +00:00
|
|
|
homePageField.value = url;
|
2000-01-07 06:52:11 +00:00
|
|
|
}
|