Skip to content
Snippets Groups Projects
Commit 51cc3f88 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#652 - set initial color silently to avoid triggering onChange

parent d3967ae0
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ $(document).ready(function() ...@@ -23,7 +23,6 @@ $(document).ready(function()
editor: true, editor: true,
editorFormat: 'hex', editorFormat: 'hex',
cancelButton: false, cancelButton: false,
color: colorPickerParent.style.backgroundColor,
onChange: function(color) { onChange: function(color) {
updateCustomColor(colorPickerParent, color); updateCustomColor(colorPickerParent, color);
}, },
...@@ -31,6 +30,8 @@ $(document).ready(function() ...@@ -31,6 +30,8 @@ $(document).ready(function()
updateCustomColor(colorPickerParent, color); updateCustomColor(colorPickerParent, color);
} }
}); });
colorPicker.setColor(colorPickerParent.style.backgroundColor, true);
} }
$('.button-request-delete-category').click(function() $('.button-request-delete-category').click(function()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment