fixing 37738, fail to migrate 4.x profile on start

This commit is contained in:
ben%netscape.com 2000-05-01 22:03:52 +00:00
parent dc7c4b5dd8
commit c260efdf1d
2 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ function RenameProfile()
}
else {
var selected = profileTree.selectedItems[0];
if( selected.getAttribute("rowMigrate") == "no" ) {
if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {
// migrate if the user wants to
var lString = bundle.GetStringFromName("migratebeforerename");
lString = lString.replace(/\s*<html:br\/>/g,"\n");
@ -85,7 +85,7 @@ function RenameProfile()
}
}
var migrate = selected.getAttribute("rowMigrate");
var migrate = selected.firstChild.firstChild.getAttribute("rowMigrate");
dump("*** oldName = "+ oldName+ ", newName = "+ newName+ ", migrate = "+ migrate+ "\n");
try {
profile.renameProfile(oldName, newName);
@ -122,7 +122,7 @@ function ConfirmDelete()
var selected = profileTree.selectedItems[0];
var name = selected.getAttribute("rowName");
if( selected.getAttribute("rowMigrate") == "no" ) {
if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {
// auto migrate if the user wants to. THIS IS REALLY REALLY DUMB PLEASE FIX THE BACK END.
var lString = bundle.GetStringFromName("migratebeforedelete");
lString = lString.replace(/\s*<html:br\/>/g,"\n");

View File

@ -139,7 +139,7 @@ function onStart()
var selected = profileTree.selectedItems[0];
var profilename = selected.getAttribute("profile_name");
if( selected.getAttribute("rowMigrate") == "no" ) {
if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {
var lString = bundle.GetStringFromName("migratebeforestart");
lString = lString.replace(/\s*<html:br\/>/g,"\n");
if( confirm( lString ) )