From 3e8b4268471d7f5d0356c593c636b496ffac4cc5 Mon Sep 17 00:00:00 2001 From: Daniel Krol Date: Tue, 17 Mar 2020 00:16:37 -0400 Subject: [PATCH] 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 --- src/static/js/pad_userlist.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static/js/pad_userlist.js b/src/static/js/pad_userlist.js index 7ac960d0..11b95880 100644 --- a/src/static/js/pad_userlist.js +++ b/src/static/js/pad_userlist.js @@ -809,6 +809,7 @@ function closeColorPicker(accept) function showColorPicker() { previousColorId = myUserInfo.colorId; + $.farbtastic('#colorpicker').setColor(myUserInfo.colorId) if (!colorPickerOpen) {