leave modal open when choosing a color on kanban modals

This commit is contained in:
daria 2024-06-21 13:33:02 +03:00
parent 79cbd8fc32
commit bb62932048

View file

@ -380,6 +380,13 @@ define([
palette.forEach(function (color) {
var $color = $(h('button.cp-kanban-palette.fa'));
$color.addClass('cp-kanban-palette-'+(color || 'nocolor'));
$color.keydown(function (e) {
if (e.which === 13) {
e.stopPropagation();
e.preventDefault();
$color.click();
}
});
$color.click(function () {
if (offline) { return; }
if (color === selectedColor) { return; }