fix(colorPicker): cleaned setup of new lib

This commit is contained in:
Florent Chehab
2020-04-19 16:49:39 +02:00
parent 6025dc595a
commit 99378c276b
2 changed files with 8 additions and 8 deletions

View File

@@ -510,9 +510,11 @@ $(document).ready(function () {
whiteboard.dropIndicator.hide();
});
$('#whiteboardColorpicker').colorPicker({
renderCallback: function (elm) {
whiteboard.setDrawColor(elm.val());
new Picker({
parent: $('#whiteboardColorpicker')[0],
color: "#000000",
onChange: function(color) {
whiteboard.setDrawColor(color.rgbaString);
}
});
});