Changed to load the new cpw.xul

This commit is contained in:
gayatrib%netscape.com 1999-08-31 00:22:48 +00:00
Родитель f0b7d7fb08
Коммит 8ddcc62d7b
2 изменённых файлов: 10 добавлений и 9 удалений

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

@ -2,15 +2,16 @@ var profileCore = "";
var selected = null;
var currProfile = "";
function CreateProfile()
function openCreateProfile()
{
// Need to call CreateNewProfile xuls
// var win = window.openDialog('resource://res/profile/cpwManager.xul', 'Creator', 'chrome');
dump("\ngot here\n");
//this.location.replace(this.location);
//this.location.replace("resource:/res/profile/cpwManager.xul");
this.location.href = "resource:/res/profile/cpwManager.xul";
//this.location = "resource:/res/profile/cpwManager.xul";
var win = window.openDialog('cpw.xul', 'CPW', 'chrome');
return win;
}
function CreateProfile()
{
this.location.href = "resource:/res/profile/pm.xul";
}
function MigrateProfile(override)
@ -215,7 +216,7 @@ function openRename()
if (migrate == "true")
dump("Migrate the profile before renaming it.\n");
else
var win = window.openDialog('pmrename.xul', 'Renamer', 'chrome');
var win = window.openDialog('pmRename.xul', 'Renamer', 'chrome');
}
}

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

@ -72,7 +72,7 @@ xmlns:html="http://www.w3.org/TR/REC-html40"
<box align="horizontal">
<box align="vertical">
<titledbutton value="&newCmd.label;" onclick="CreateProfile();" style="margin-bottom: 1em;"/>
<titledbutton value="&newCmd.label;" onclick="openCreateProfile();" style="margin-bottom: 1em;"/>
<titledbutton value="&migrateCmd.label;" onclick="MigrateProfile();"/>
<titledbutton value="&migrateAllCmd.label;" onclick="ConfirmMigrateAll();" style="margin-bottom: 1em;"/>
<titledbutton value="&renameCmd.label;" onclick="openRename();" />