leave modal open when choosing a color on kanban modals
This commit is contained in:
parent
79cbd8fc32
commit
bb62932048
1 changed files with 7 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue