mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
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:
parent
8401011da6
commit
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user