Press enter to add a new item in kanban
This commit is contained in:
parent
abbe090d05
commit
b4cc525ca6
@ -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…
x
Reference in New Issue
Block a user