Press enter to add a new item in kanban
This commit is contained in:
parent
68f0a5fda0
commit
6b81bba3a5
1 changed files with 5 additions and 0 deletions
|
@ -152,6 +152,9 @@ define([
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
save();
|
save();
|
||||||
|
if (!$input.val()) { return; }
|
||||||
|
if (!$(el).closest('.kanban-item').is(':last-child')) { return; }
|
||||||
|
$(el).closest('.kanban-board').find('.kanban-title-button.fa-plus').click();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (e.which === 27) {
|
if (e.which === 27) {
|
||||||
|
@ -301,6 +304,8 @@ define([
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
save();
|
save();
|
||||||
|
if (!$input.val()) { return; }
|
||||||
|
$(el).closest('.kanban-board').find('.kanban-title-button.fa-plus').click();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (e.which === 27) {
|
if (e.which === 27) {
|
||||||
|
|
Loading…
Reference in a new issue