fix bug 24752 (back button on profile mgr page) r=syd@netscape.com; and partial for 23121 (jumpy text in titledbuttons that are disabled).

This commit is contained in:
ben%netscape.com 2000-01-23 20:06:02 +00:00
Родитель 0fcd263ede
Коммит 74e584fecd
2 изменённых файлов: 8 добавлений и 10 удалений

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

@ -160,15 +160,16 @@ function SwitchProfileManagerMode()
{
prattleIndex = 1; // need to switch to manager's index
captionLine = bundle.GetStringFromName( "pm_title" ); // get manager's caption
manageButton = bundle.GetStringFromName( "pm_button" ); // get the manage button caption
buttonDisplay = "display: inherit;"; // display the manager's buttons
var manage = document.getElementById( "manage" ); // hide the manage profiles button...
var manageParent = manage.parentNode;
manageParent.removeChild( manage );
profileManagerMode = "manager"; // swap the mode
PersistAndLoadElements( selItems ); // save the selection and load elements
}
else {
prattleIndex = 0;
captionLine = bundle.GetStringFromName( "ps_title" );
manageButton = bundle.GetStringFromName( "ps_button" );
buttonDisplay = "display: none;";
profileManagerMode = "selection";
PersistAndLoadElements( selItems );
@ -178,10 +179,6 @@ function SwitchProfileManagerMode()
var deck = document.getElementById( "prattle" );
deck.setAttribute( "index", prattleIndex )
// update the manager button.
var manage = document.getElementById( "manage" );
manage.setAttribute( "value", manageButton );
// swap caption
ChangeCaption( captionLine );

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

@ -84,9 +84,6 @@ div.label {
}
/* manager buttons */
titledbutton#manage {
min-width: 100px;
}
titledbutton.padded {
padding-left: 10px ! important;
padding-right: 10px ! important;
@ -95,11 +92,15 @@ titledbutton.padded:hover {
padding-left: 10px ! important;
padding-right: 10px ! important;
}
titledbutton.padded:active {
padding-left: 11px ! important;
padding-right: 9px ! important;
}
titledbutton.padded[disabled="true"],
titledbutton.padded:active[disabled="true"] {
padding-left: 10px ! important;
padding-right: 10px ! important;
}
/* platform common dialog buttons */
box#okCancelButtons {