Press enter to add a new item in kanban

pull/1/head
yflory 5 years ago committed by ansuz
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…
Cancel
Save