mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
var _oPassportMgr = null;
|
|
|
|
function PageInit()
|
|
{
|
|
top.window.PopulateLeftPane(idRelatedTaskContent.innerHTML, idLearnAboutContent.innerHTML);
|
|
|
|
_oPassportMgr = new ActiveXObject("UserAccounts.PassportManager");
|
|
if (_oPassportMgr != null)
|
|
{
|
|
var strPassport = _oPassportMgr.currentPassport;
|
|
if (strPassport && strPassport.length > 0)
|
|
idPassportName.innerText = strPassport;
|
|
}
|
|
else
|
|
{
|
|
// show error message?
|
|
idOK.disabled = true;
|
|
idEditPassport.disabled = true;
|
|
}
|
|
|
|
idOK.focus();
|
|
}
|
|
|
|
function LaunchPassportWizard()
|
|
{
|
|
if (_oPassportMgr.showWizard(top.window.document.title))
|
|
top.window.g_Navigator.navigate("mainpage.htm",true);
|
|
}
|
|
|
|
function ModifyPassport()
|
|
{
|
|
var url = _oPassportMgr.memberServicesURL;
|
|
if (url && url.length > 0)
|
|
{
|
|
window.open(url);
|
|
|
|
// If we do this, User Accounts ends up on top.
|
|
//top.window.g_Navigator.navigate("mainpage.htm",true);
|
|
}
|
|
else
|
|
{
|
|
idEditPassport.disabled = true;
|
|
alert(top.window.L_NoPassportURL_ErrorMessage);
|
|
}
|
|
}
|