fixes for b41817 (cannot delete profile), and b32808 (profile not created in selected dir), r=hyatt

This commit is contained in:
ben%netscape.com 2000-06-13 00:12:30 +00:00
Родитель f96d29bcff
Коммит be83493823
3 изменённых файлов: 19 добавлений и 16 удалений

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

@ -108,7 +108,7 @@ function onFinish()
var profName = wizardManager.WSM.PageData["newProfile1_2"].ProfileName.value;
dump("**** profName: "+ profName + "\n");
var profDir = wizardManager.WSM.PageData["newProfile1_2"].ProfileDir.rootFolder;
var profDir = wizardManager.WSM.PageData["newProfile1_2"].ProfileDir.value;
// Get langcode
var langcode = window.frames["content"].document.getElementById("langList").selectedItem.getAttribute("data");

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

@ -79,6 +79,7 @@ function chooseProfileFolder( aRootFolder )
}
if( aRootFolder ) {
var folderText = document.getElementById("ProfileDir");
dump("*** setting rootFolderAttribute to " + aRootFolder + "\n");
folderText.setAttribute( "rootFolder", aRootFolder );
if ( aRootFolder != top.profile.defaultProfileParentDir.nativePath )
document.getElementById( "useDefault" ).removeAttribute("disabled");

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

@ -136,6 +136,7 @@ function DeleteProfile( deleteFiles )
{
var profileTree = document.getElementById( "profiles" );
var profileKids = document.getElementById( "profilekids" )
if (profileTree.selectedItems && profileTree.selectedItems.length) {
var selected = profileTree.selectedItems[0];
var firstAdjacent = selected.previousSibling;
var name = selected.getAttribute( "rowName" );
@ -149,10 +150,11 @@ function DeleteProfile( deleteFiles )
alert( lString );
}
if( firstAdjacent )
profileTree.selectCell( firstAdjacent );
profileTree.selectItem( firstAdjacent );
// set the button state
DoEnabling();
}
}
function ConfirmMigrateAll()
{