Fixed color picker initialization bug 89973 (r=sfraser) and Last Picked button behavior bug (r=mjudge), sr=kin on both

This commit is contained in:
cmanske%netscape.com 2001-07-11 00:42:32 +00:00
Родитель 8401011da6
Коммит 1c43fa425e
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -120,7 +120,8 @@ function Startup()
}
// Set initial color in input field and in the colorpicker
dialog.ColorPicker.color = color;
SetCurrentColor(color);
dialog.ColorPicker.initColor(color);
// Use last-picked colors passed in, or those persistent on dialog
if (TextType)
@ -189,8 +190,7 @@ function RemoveColor()
function SelectLastPickedColor()
{
SetCurrentColor(LastPickedColor);
dialog.ColorInput.focus();
SetDefaultToOk();
onOk();
}
function SetCurrentColor(color)