зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8401011da6
Коммит
1c43fa425e
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче