mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
19 lines
561 B
JavaScript
19 lines
561 B
JavaScript
|
|
function prefNavSelectFile()
|
|
{
|
|
bundle = srGetStrBundle("chrome://pref/locale/prefutilities.properties");
|
|
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 )
|
|
homePageField = url;
|
|
} |