ui: initialize color picker with the user's color

Initialize the color picker with user's current color.
Was previously initialized with grey in Farbtastic library.

Fixes #3617
This commit is contained in:
Daniel Krol 2020-03-17 00:16:37 -04:00 committed by muxator
parent ac9d7f80cc
commit 3e8b426847

View file

@ -809,6 +809,7 @@ function closeColorPicker(accept)
function showColorPicker() function showColorPicker()
{ {
previousColorId = myUserInfo.colorId; previousColorId = myUserInfo.colorId;
$.farbtastic('#colorpicker').setColor(myUserInfo.colorId)
if (!colorPickerOpen) if (!colorPickerOpen)
{ {